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)