Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create image from byte

Status
Not open for further replies.

Jefhandle

Technical User
Mar 9, 2005
69
DE
I read an image in an array, imgAray[].
Now I will instead to make an image object from a file
(System.Drawing.Image.FromFile(Filename) )
make it from this array.
Something like :
System.Drawing.Image.From???(imgArray)
I see the image object has a Method:
System.Drawing.Image.FromStream
If this is the only way to do it, how I write
ImgArray to the stream

?
 
Use a memory stream object
Code:
MemoryStream ms = new MemoryStream(myByteArray);
Image img = Image.FromStream(ms);
Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
bitteschön.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top