cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro Image source from server image file

giusepperollo
Explorer
0 Kudos

Hi all,

I need to set Web Dynpro ABAP UI Image element's SOURCE property to a file in the server's file system.

I can't use MIME repository because I haven't image file at development time.

Is it possible? And what is the server folder where I must store image file?

Thanks in advance

Giuseppe Rollo

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You probably won't be able to reference the files from the filesystem of the app server directly. Remember that you just send the file location to the browser and the browser actually requests the document. Therefore the link you would provide would need to be accessible to the client machine (IE - severed by some additional web service on the application server OS).

More likely the easier approach is to use the ABAP DATASET commands to read the file contents from the file system into memory in ABAP. You can then place the file contents into the ICM Cache and generated a temporary URL for them. It will be like the image is coming from the MIME repository, but without having to actually store the image there.

giusepperollo
Explorer
0 Kudos

Thanks Thomas

Answers (0)