Possible Duplicate:
Converting .EPS to Image in C#
How to convert byte array to .eps image in C#?
I have a code which works with graphic images(.jpg
, .png
...) but it throws an argument exception when I'm converting to .eps
format.
MemoryStream ms = new MemoryStream(byteArray, 0, byteArray.Length);
using (ms)
{
//saving image on current project directory
Image img = Image.FromStream(ms);
img.Save(Environment.CurrentDirectory + "file.eps");
}