Skip to Content
avatar image
-3
Former Member

How to display an image in container saved in xstring format in custom table?

I have uploaded an image from wda application and saved in custom table using 3 fields-

Filename/Filedata(xstring)/Mimetype-

Same file i am able to download in wda application using--

wdr_task=>client_window->client->attach_file_to_response( i_filename = lv_name
i_content = ls_file_upload-file
i_mime_type = lv_mime ).

How can i display/download this xstring in container- Report/Mod. Pool?

Its easy to get this done via MIME object (saving data) or uploading in se78 but i want to pickk up dynamic image saved through wda app?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 20 at 08:37 PM

    Use class CL_GUI_PICTURE and declare reference for your custom container.

    Create URL for your XSTRING using FM DP_CREATE_URL.

    and call method for your custom container LOAD_PICTURE_FROM_URL using URL generated from first step.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 20 at 10:01 PM

    Also the CL_GUI_HTML_VIEWER control (web browser wrapper).

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 21 at 08:09 PM
    Add comment
    10|10000 characters needed characters exceeded

    • Please stop adding new "answers". An "answer" is intended to provide a solution to the original question. Instead, add "comments" to the answers. A "comment" is a reply to a given solution. You have a menu to convert your "answers" into "comments".