on 04-28-2016 2:50 PM
Hi Everyone,
Can someone tell me How to display image in webdynpro which is in binary format.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Felipe,
Can you please find below code and suggest me whether it is possible to display the binary format to image in webdnypro UI.i am getting the image from webservice in base64 format then i am converting the image to binary format.
CALL FUNCTION 'SSFC_BASE64_DECODE'
EXPORTING
b64data = output-parameters-return-base64
IMPORTING
bindata = image
EXCEPTIONS
OTHERS = 8.
*
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = image
"APPEND_TO_TABLE = ' '
IMPORTING
output_length = imagelength
TABLES
binary_tab = it_img.
Hi Smruti,
Web Dynpro UI Element expects an image URL, not an binary file. Therefore, you need to cache the binary file in ICM and get from it a temporary URL and use this to display your image.
If you go through the steps provided by Thomas Jung on you will be able to do this easily.
Regards,
Felipe
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.