-
byte array to stream
Hi all,
I am trying to get from a byte array to a stream reader.....any ideas?
Here's a longer explanation of what i'm trying to achieve:
I have an image stored in my database table in binary format. I put the image out of the table and but it in a byte array. I now want to display it on screen using GDI+. The way I figure doing this is by using System.Drawing.Image.FromStream() method call, and creating a Bitmap object. The problem is I can't get from an byte array to a stream.
Any ideas?
Cheers
Nick
-
Could always check the sub-classes of the Stream class... :)
Code:
byte[] myByteArray = null;
// Load image etc..
MemoryStream myStream = new MemoryStream(myByteArray);