Vetrijar Posted January 29, 2004 Posted January 29, 2004 I'm trying to find a way to resize an image uploaded through the WebPostedFile object. The ones on the web I'm finding are PHP, or script based. Are there any that are plain vb.net programming ? The one I found which didn't work yet was System.Drawing.Image using that I tried. dim uploadimage as system.drawing.image dim resizeimage as system.drawing.image UploadImage.FromStream(file1.PostedFile.InputStream) Resizemage = UploadImage.GetThumbnailImage(100, 200, Nothing, Nothing) ResizeImage.Save("mypicture1.jpg") I get the error. Object reference not set to an instance of an object The NEW command doesn't work for this dim statement either :-( Quote
laredo512 Posted February 15, 2004 Posted February 15, 2004 this may help http://www.xtremedotnettalk.com/showthread.php?s=&threadid=81591&highlight=upload Quote Laredo512 * using VS.NET Pro 2003 *
laredo512 Posted February 15, 2004 Posted February 15, 2004 anytime Quote Laredo512 * using VS.NET Pro 2003 *
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.