Bug in CreateGdPictureImageFromByteArray

General discussions about GdPicture.NET.
Post Reply
DevExec
Posts: 4
Joined: Mon Jan 26, 2009 11:01 am

Bug in CreateGdPictureImageFromByteArray

Post by DevExec » Wed Apr 21, 2010 6:43 pm

I attempted to call CreateGdPictureImageFromByteArray by loading a file into a byte array using File.ReadAllBytes and the function fails. The same file can be opened using CreateGdPictureImageFromFile though.

I tried creating a byte array with GetPixelArrayByte and then loading the resulting array with CreateGdPictureImageFromByteArray and it still fails.

Is this a bug or am I missing something?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Bug in CreateGdPictureImageFromByteArray

Post by Loïc » Wed Apr 21, 2010 7:49 pm

Hi,

Could you write here the code you are using with File.ReadAllBytes ?

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest