Last post Nov 14, 2014 04:46 AM by PatriceSc
Nov 13, 2014 03:53 AM|35975|LINK
facing issue while converting bytes into Image, but there is no issue while converting bytes into image in Windows XP or Windows Server 2008 R2 32 bit. We have identified the issue in 64 bit server and Windows 7. Please help..
intTotalSize = fstrm.Read(arrImage, 0,
Integer) - 1)
objMemStream.Write(arrImage, 0, arrImage.Length)
imgItem.Image = System.Drawing.Image.FromStream(fstrm)
Nov 13, 2014 04:13 AM|smirnov|LINK
What issue, does your code return any error?
Nov 14, 2014 04:32 AM|Aswecan|LINK
I suggest that you can press F12 to debug , and check if your page has any error message or details.
Nov 14, 2014 04:46 AM|PatriceSc|LINK
As pointed by others you should always tell what is the problem (error message or behavior you see if no error).
Here it seems you read the stream to an array, write it to a memory Stream and then try it to read it from the first Stream whose position might be now incorrect. What if you check fstrm.Position before the FromStream?
Try to get rid first of uneeded reads.