CreateGdPictureImageFromStream is always returning 0

General discussions about GdPicture.NET.
Post Reply
sumitgupta
Posts: 1
Joined: Thu Dec 23, 2021 6:06 pm

CreateGdPictureImageFromStream is always returning 0

Post by sumitgupta » Thu Dec 23, 2021 6:21 pm

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...

User avatar
Fabio
Posts: 173
Joined: Thu Aug 27, 2020 9:57 am

Re: CreateGdPictureImageFromStream is always returning 0

Post by Fabio » Mon Dec 27, 2021 6:08 pm

Hello,

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

With best,
Fabio

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest