Click here to Skip to main content
15,900,108 members

Comments by IceTrailer (Top 14 by date)

IceTrailer 14-Dec-14 13:22pm View    
There is no error or something returned. No console popped up or similar.
IceTrailer 7-Dec-14 13:13pm View    
Oh crap.. I get at line
Image oImage = Image.FromStream(oMemoryStream);
System.ArgumentException in System.Drawing.dll
Additional information: Invalid parameter.
Do you know how to fix?
IceTrailer 7-Dec-14 12:47pm View    
Deleted
Oh crap.. I get at line
Image oImage = Image.FromStream(oMemoryStream);
System.ArgumentException in System.Drawing.dll
Additional information: Invalid parameter.
Do you know how to fix?
IceTrailer 7-Dec-14 10:25am View    
Thank you,

okay first it's c# (but it doesn't matter)..
second Visual Studio tells me that Image.Save has to be static.

Do you know how to fix?
static void Main(string[] args)
{
string oldFile = @"D:\Daniel\Desktop\ip\0";
string newFile = @"D:\Daniel\Desktop\ip\new\0.png";

byte[] oByteArray = File.ReadAllBytes(oldFile);
MemoryStream oMemoryStream = new MemoryStream(oByteArray);
Image oImage = Image.FromStream(oMemoryStream);
Image.Save(newFile, ImageFormat.Png);

}

Thank you in advance.
IceTrailer 7-Dec-14 9:55am View    
http://pastebin.com/raw.php?i=V6yFnmtP (binary)
http://pastebin.com/raw.php?i=z0Gqu5Tz (png)

You mean that?