Hello, I've tried googling the hell of out this and no luck, I have the code that is getting the string out of the file, but when I try to create an Image from the code it's giving me a "Parameter Incorrect" exception
Here is the code I use to convert the string and get the image
Here is the top of the stream I am trying to open as an image
I am thinking that This is not even a JPEG image, but that is what the rest of the file is telling me...
Any ideas?
Thanks!
Here is the code I use to convert the string and get the image
Code:
try
{
string szImage = FilterResults("PHOTOGRAPH").Replace("\r\n\t\t\t", "");
byte[] bytes = Convert.FromBase64String(szImage);
MemoryStream mem = new MemoryStream(bytes);
Image bmp2 = Image.FromStream(mem);
return bmp2;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
return null;
}
ffd8ffe0
Any ideas?
Thanks!
Comment