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

Opening a TIFF picture with CALL_METHOD

Former Member
0 Kudos
319

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.

2 REPLIES 2
Read only

athavanraja
Active Contributor
0 Kudos
283

which viewer you are using. if you are using html viewer control it cannot render tif images

Read only

0 Kudos
283

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.