Save binarydata into a image file in c# / silverlight 3

Posted by Jin on Stack Overflow See other posts from Stack Overflow or by Jin
Published on 2010-05-31T23:05:03Z Indexed on 2010/05/31 23:13 UTC
Read the original article Hit count: 285

Filed under:
|
|
|
|
   byte[] binaryData = new Byte[pngStream.Length];
   long bytesRead = pngStream.Read(binaryData, 0, (int)pngStream.Length);

   string base64String = System.Convert.ToBase64String(binaryData,
                                                          0,
                                                          binaryData.Length);

I have a binary data in Byte array. Does anybody know how to save this into any image file (png or jpg) in silverlight3 or c#?

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about Silverlight