Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Load picture from url: http vs https

Former Member
0 Likes
2,732

Hi

I've developed a program loads and shows a picture by  method CL_GUI_PICTURE->LOAD_PICTURE_FROM_URL_ASYNC,the url can use both protocol: http and https,

but the image is not loaded with https url

Some experience about these?

Max

1 REPLY 1
Read only

Former Member
0 Likes
961

Hi

I'm still investigating about the issue

Now It's been discovered the method CL_GUI_PICTURE->LOAD_PICTURE_FROM_URL_ASYNC works if before calling it it's called an object of class CL_GUI_HTML_VIEWER

I've tried to upload my https url by transaction DWDM:

if I run demo program SAP_PICTURE_DEMO (based on class CL_GUI_PICTURE), the image is not displayed,

but if I run demo program SAPHTML_DEMO1 (based on class CL_GUI_HTML_VIEWER) and then SAP_PICTURE_DEMO, it works

The strange is I can run those programs in different systems (for example SAPHTML_DEMO1 in development and SAP_PICTURE_DEMO in production) and it works

So I can suppose the methods of class CL_GUI_HTML_VIEWER set something at the client level (I mean SAP GUI), infact the program SAPHTML_DEMO1 can be run once, and the picture will be loaded until the pc will be switched off

If somebody has an idea...