Cannot create image from https url

General discussions about GdPicture.NET.
Post Reply
tuandv
Posts: 14
Joined: Fri Dec 03, 2010 11:43 am

Cannot create image from https url

Post by tuandv » Mon Apr 14, 2014 9:19 am

It works with http but it fails with https, always return InternetHttpOpenRequestError, I already tried with the both C# and javascript code. My scenario is that I have a website using GDPicture .Net ActiveX v10, I have a self SSL cert created by IIS and make this site binding https, I expecting GDPicture can create image from HTTPs... It worked well with GDPicture v5, but not work with v10

[JavaScript Code]
nImageID = MyImaging.CreateGdPictureImageFromHTTP(ServerName, "images/a.jpg", 443);

or
MyImaging.CreateGdPictureImageFromHTTP("https://ServerName/images/a.jpg", "", "");
MyGdViewer.DisplayFromHTTP_2("https://ServerName/images/a.jpg", "", "");
MyGdViewer.DisplayFromHTTP(ServerName, "images/a.jpg", 443);

[C# Code]
GdPictureImaging oGdPictureImaging = new GdPictureImaging();
int nImageID = oGdPictureImaging.CreateGdPictureImageFromHTTP(ServerName, "/images/a.jpg", 443);
GdPictureStatus status = oGdPictureImaging.GetStat();

All method return InternetHttpOpenRequestError, please help me, btw, I'm still waiting for your minor release to fix thumbnail issue.

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

Re: Cannot create image from https url

Post by Loïc » Mon Apr 14, 2014 6:26 pm

Hello,

You can subsequently use the GetLastTransferError() to diagnose the error.

If the problem still persists, using latest GdPicture.NET build, you can create a ticket to the helpdesk plateform by providing the https address and the needed credentials for us to reproduce the problem.

Helpdesk: http://support.gdpicture.com

With best regards,

Loïc Carrère

tuandv
Posts: 14
Joined: Fri Dec 03, 2010 11:43 am

Re: Cannot create image from https url

Post by tuandv » Tue Apr 15, 2014 4:28 am

Hi Loic,

the transfer error is "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. (0)", I think your axtiveX has to use the context of IE, why I got this error?
I already tried with a few simple vb6 codes using MSXML2.XMLHTTP, very easy to get the content of image, maybe this is the way you did for version 5.
BTW, a few days ago I had a problem when I set windows authentication in IIS, your activeX doesn't use IE context so GDPicture couldn't load image from http (not https), I had to do work around by setting no authentication for images folder only, and now I got problem with https, I think the problem is that your activeX doesn't use IE context, right?

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

Re: Cannot create image from https url

Post by Loïc » Tue Apr 15, 2014 12:23 pm

Hello,

Unfortunately I can't do anything else without being able to reproduce and trace the issue. You should create a ticket on the helpdesk as I told in my previous reply.

Thank you for your comprehension.

With best regards,

Loïc Carrère

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest