Ok I guess the easiest way to do this is to post some code.<BR><%@ import namespace="system.drawing" %><BR><%@ import namespace="system.drawing.imaging" %><BR><script language="vb" runat="server"><BR>sub page_load(sender as object, e as eventargs)<BR> dim bmp as bitmap = new bitmap(150,150)<BR> response.contenttype = "image/jpeg"<BR> bmp.save(response.outputstream, imageformat.jpeg)<BR>end sub<BR></script><BR>basically it creates a black box 150 X 150.<BR>now there is a way to push a file into the bmp (thus resizing the image) by using the System.Drawing.Image.FromFile call<BR>(see site http://www.aspalliance.com/chrisg/tools/view-image2.asp) <BR>I want to basically resize images from a db I know I can do it from a file using the above example, but I tried using System.Drawing.Image.FromStream, but its not working all to well. if anyone has ideas let me know and thanks in advance for the help.<BR>ok here is an update I did it all on me own yay.<BR>three files<BR>testimg.aspx shows everything in a datalist<BR>viewthumb.aspx shows thumbnails<BR>viewimg.aspx shows the real image<BR><BR>**testimg.aspx<BR><%@ Import Namespace="System" %><BR><%@ Import Namespace="System.Configuration" %><BR><%@ Import Namespace="System.Data" %><BR><%@ Import Namespace="System.Data.SqlClient" %><BR><%@ Page Language="vb" Debug="true" %><BR><script language="vb" runat="server"><BR> sub page_load(sender as object, e as eventargs) <BR> bindgrid<BR> end sub<BR> sub bindgrid()<BR> dim c as new sqlconnection("server=(local);database=master;trusted_connection= yes")<BR> dim ds as dataset = new dataset()<BR> dim adapter as sqldataadapter = new sqldataadapter("select img_name,img_pk from image", c)<BR> adapter.fill(ds,"master")<BR> mydatalist.datasource=ds.tables("master").defaultview<BR> mydatalist.databind()<BR> end sub<BR></script><BR><html><BR><head><BR></head><BR><body><BR><form runat="server"><BR> <asp:datalist id="mydatalist"<BR> repeatecolumns="5"<BR> repeatdirection="horizontal"<BR> runat="server"<BR> ><BR> <itemtemplate><BR> <td><a href=http://aspmessageboard.com/archive/index.php/"viewimg.aspx?img=<%# DataBinder.Eval(Container.DataItem, "img_pk") %>" ><img src="viewthumb.aspx?img=<%# DataBinder.Eval(Container.DataItem, "img_pk") %>" border=0></asp:link></td><BR> </itemtemplate><BR> </asp:datalist><BR> <p><BR></form><BR></body><BR></html><BR><BR>**viewimg.aspx<BR><%@ import namespace="system.web.security " %><BR><%@ import namespace="system" %><BR><%@ import namespace="system.configuration" %><BR><%@ import namespace="system.data" %><BR><%@ import namespace="system.data.sqlclient" %><BR><%@ page language="vb" debug="true" %><BR><script language="vb" runat="server"><BR> sub page_load(sender as object, e as eventargs)<BR> dim c as new sqlconnection("server=(local);database=master;trusted_connection= yes")<BR> dim cmd as sqlcommand = new sqlcommand("select img_contenttype,img_data from image where img_pk="+request.querystring("img"),c)<BR> c.open<BR> dim dr as sqldatareader = cmd.executereader()<BR> if dr.read() then<BR> response.contenttype = dr("img_contenttype").ToString()<BR> response.binarywrite(dr("img_data"))<BR> end if<BR> c.close<BR> end sub<BR></script><BR><BR>**viewthumb.aspx<BR><%@ import namespace="system.web.security " %><BR><%@ import namespace="system" %><BR><%@ import namespace="system.configuration" %><BR><%@ import namespace="system.data" %><BR><%@ import namespace="system.data.sqlclient" %><BR><%@ import namespace="system.drawing" %><BR><%@ import namespace="system.drawing.imaging" %><BR><%@ import namespace="system.io" %><BR><%@ page language="vb" debug="true" %><BR><script language="vb" runat="server"><BR> sub page_load(sender as object, e as eventargs)<BR> dim c as new sqlconnection("server=(local);database=master;trusted_connection= yes")<BR> dim cmd as sqlcommand = new sqlcommand("select img_contenttype,img_data from image where img_pk="+request.querystring("img"),c)<BR> c.open<BR> dim dr as sqldatareader = cmd.executereader()<BR> if dr.read() then<BR> dim callback as system.drawing.image.getthumbnailimageabort<BR> dim callbackdata as system.intptr<BR> dim image as byte() = dr("img_data")<BR> dim imgstream as stream = new system.io.memorystream(image)<BR> dim img as system.drawing.image = system.drawing.image.fromstream(imgstream)<BR> dim thumb as system.drawing.image = img.getthumbnailimage(150,150,callback,callbackdat a)<BR> dim type as object<BR> if dr("img_contenttype").ToString()="gif" then <BR> type=imageformat.gif<BR> response.contenttype="image/gif"<BR> else<BR> type=imageformat.jpeg<BR> response.contenttype="image/pjpeg"<BR> end if<BR> thumb.save(response.outputstream, type)<BR> end if<BR> c.close<BR> end sub<BR></script><BR><BR><BR>oh and please mind my million <%@ import %> statements as I am just learning this stuff. I probably have more in there than I need.<BR><BR>but it works =).