Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Mar 08, 2007 02:21 AM|LINK
I have been assigned to create a web gallery that users can upload to.
Basically. it goes like this
map paths store on database.
create thumbnail sized image
link thumnmail to larger image.
The issue I am having is that for some reason I am not able to get thumbnail to be uploaded.
so the normal sized images upload just find as does the path.
the thumbnail path uploads fine. but the thumbnail image does not.
I am sure it is just something I have over looked and need a 2nd pair of eyes to see.
here is my code.
FullSizedImage.PostedFile.SaveAs(LocationToSave + FilenameAndExtension)
FullSizePhoto = System.Drawing.Image.FromFile(LocationToSave + FilenameAndExtension)
ThumbnailPhoto = FullSizePhoto.GetThumbnailImage(200, 200, dummyCallBack, IntPtr.Zero)
ThumbnailPhoto.Save(LocationToSave + ThumbnailFilename, ImageFormat.Jpeg)