CreateGdPictureImageFromByteArray will not load PNG

Discussions about image processing and document imaging.
Post Reply
don2
Posts: 1
Joined: Thu Apr 03, 2014 9:14 pm

CreateGdPictureImageFromByteArray will not load PNG

Post by don2 » Thu Apr 03, 2014 9:20 pm

Why does CreateGdPictureImageFromByteArray not open a byte array PNG image, as follows

var oGdPictureImaging = new GdPictureImaging();
var imageId = oGdPictureImaging.CreateGdPictureImageFromByteArray(imageArray);

There as if I stream the bytes into a NET Image class the image loads fine?

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: CreateGdPictureImageFromByteArray will not load PNG

Post by SamiKharma » Sun Apr 13, 2014 11:34 am

Hi,

I think the problem might be in the way you are creating your bytearray image. Please have a look at the example in the reference guide. If you still encounter the problem please attach the PNG image you are talking about.

Best,
Sami

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests