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