Image Upload Stream Problem
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I have the following code: TempImage.GetThumbnailImage(95,72,null,IntPtr.Zero); MemoryStream ThumbStream = new MemoryStream(); TempImage.Save(ThumbStream,System.Drawing.Imaging.ImageFormat.Jpeg); int iThumbSize = (int)ThumbStream.Length; byte[] ThumbImageData = new byte[iThumbSize]; ThumbStream.Write(ThumbImageData,0,iThumbSize); I am taking a image and creating a thumbnail to save to a database. I can see that there is data in the ThumbStream using quick watch. When I use the .Write it doesn't copy the data over. I seriously don't understand. oh and iThumbSize is 2996. If anyone can point me in the right direction it would be greatful. Thanks...