Click here to Skip to main content
15,918,275 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please do it fast...
I am facing error while converting Byte array to Image @ " newImage = Image.FromStream(ms);"
Posted
Comments
Abhinav S 27-May-11 6:48am    
What error?
Sergey Alexandrovich Kryukov 27-May-11 23:57pm    
Not enough information. It could be anything.
--SA

 
Share this answer
 
Check the stream.

ArgumentException: The stream does not have a valid image format
-or-
stream is Nothing.

See:http://msdn.microsoft.com/en-us/library/93z9ee4x.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900