2007 Feb 22 5:22 PM
Hi all,
In order to open images from an URL, I'm using the method CALL_METHOD from the class "CL_GUI_OBJECT", with the code below.
I'm actually using it with ".JPG" pictures and it works. Now I have to manage ".TIF" images as well and with this kind of file it isn't working.
Do you know if it is possible to load images with TIF extension with this method?
Many thanks to all. Bye,
Franz
Here is the code:
CALL METHOD<b> CALL_METHOD</b>
EXPORTING
METHOD = '<u>loadImageFromURL</u>'
P_COUNT = 1
P1 = URL
QUEUE_ONLY = ' '
IMPORTING
RESULT = RESULT
EXCEPTIONS OTHERS = 1.
2007 Feb 24 11:49 AM
which viewer you are using. if you are using html viewer control it cannot render tif images
2007 Feb 26 7:35 AM
We are reading the file directly form the server. We specify the server address and the directory where the pictures are located.
The we call the method in the following way:
CALL METHOD picture_0200->load_picture_from_url
EXPORTING
url = wk_url
IMPORTING
RESULT = wk_result_picture
EXCEPTIONS
error = 1
OTHERS = 2.
where wk_url = 'file://
XXX.XXX.XXX.XXX\images\filename.JPG'
Whe put it on a dynpro by first creating a container and then using it to put the image on. No HTML viewer is used, if I have correctly understood your question.
Thanks a lot.