Page 1 of 1

CreateGdPictureImageFromStream is always returning 0

Posted: Thu Dec 23, 2021 6:21 pm
by sumitgupta
Hi Team,

We are using GDPicture10 and getting 0 as return value on calling CreateGdPictureImageFromStream() on only one of our staging server.
on other servers it's working fine, not sure what is the issue.
I have tried CreateGdPictureImageFromByteArray() and CreateGdPictureImageFromString() also and getting 0 in every case.
We used GetStat() to know the issue and getting "UnknownImageFormat" but format is correct as we are using .jpg and .png.

We also tried using CreateGdPictureImageFromFile() then getting following exception:

Code: Select all

System.DllNotFoundException: Unable to load DLL 'GdPicture.NET.10.image.gdimgplug.64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at gdpicture_?.gdpicture_?(String A_0)
   at gdpicture_?.gdpicture_?(String A_0)
   at gdpicture_?.gdpicture_?(String A_0)
   at gdpicture_?.gdpicture_?(String A_0)
   at gdpicture_?.gdpicture_?(Int32& A_0, String& A_1, Boolean A_2, Boolean A_3, Boolean A_4, DocumentFormat A_5, Boolean A_6, Boolean A_7, Boolean A_8, Boolean A_9)
   at GdPicture10.GdPictureImaging.CreateGdPictureImageFromFile(String FilePath, Boolean LoadInMemory, Boolean DirectAccess)
   at GdPicture10.GdPictureImaging.CreateGdPictureImageFromFile(String FilePath, Boolean LoadInMemory)
   at GdPicture10.GdPictureImaging.CreateGdPictureImageFromFile(String FilePath)
   at Thumbnail.ProcessRequest(HttpContext context)
Kindly help...

Re: CreateGdPictureImageFromStream is always returning 0

Posted: Mon Dec 27, 2021 6:08 pm
by Fabio
Hello,

Could you update your GdPicture version to the latest one and tell me if the issue remains, please?

With best,
Fabio