RDMLX - Images from an external webserver

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
kno_dk
Posts: 45
Joined: Wed Oct 17, 2012 4:19 am

RDMLX - Images from an external webserver

Post by kno_dk »

Hi

I want to use an image from an external webserver. Is it possible?

I create the url to the image like this:
#uImagePathAndName := #x1http + '/' + #folder + '/' + #WEINSPNR3 + '/' + #WBILDNAM2

and this to show the image:

#COM_OWNER.Set_Image Name(PICTURE1) Resource(#uImagePathAndName) Layout_Col(1) Layout_Row(5) Downloadondemand(True) Ongetimage(FULLSIZE1) Layout_Cols(-1)

If I cpoy the url into a browser it shows the image okay.

/klaus
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: RDMLX - Images from an external webserver

Post by tsupartono »

No, it's not currently possible to do so.

The resource files must be under the 'LongRange/resource' folder.

One possible solution would be to configure your webserver to forward requests to a sub-directory under the 'LongRange/resource' folder to the URL that points to your actual image files.

For example:
'LongRange/resource/myotherserver/xxxxx' can be mapped to 'http://myotherserver/xxxxx'
kno_dk
Posts: 45
Joined: Wed Oct 17, 2012 4:19 am

Re: RDMLX - Images from an external webserver

Post by kno_dk »

hi

I changed it to a webview. Now it works.
Post Reply