VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
byte[] GetVintasoftImageAsByteArray(VintasoftImage image)
{
using (MemoryStream mem = new MemoryStream())
{
image.Save(mem, new JpegEncoder());
byte[] byteArray = new byte[mem.Length];
mem.Position = 0;
mem.Read(byteArray, 0, mem.Length);
return byteArray;
}
}
Best regards, Alexander