on 09-25-2014 1:52 PM
Hi experts,
I have requirement to save the images from an ABAP Report and then populate those images in webdynpro.
Images data is in XSTRING format and I'm displaying that in Interactive form UI element.
But I am getting the error as " File does not begin with '%PDF' , Local\EWHp+bsu5i- ".
Can anyone suggest how to overcome this scenario.
Thanks
Regards,
Giri.
Hi Giri,
Please try to use below way to display images.
lv_filename = ls_files_list-filename.
lv_mimetype = ls_files_list-mime_type.
cl_wd_runtime_services=>attach_file_to_response( EXPORTING i_filename = lv_filename
i_content = l_bin_content (--> is of type xstring)
i_mime_type = lv_mimetype
i_in_new_window = abap_true ).
I am using linktoaction UI in webdynpro.
Hope this helps.
Thanks
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kiran,
I tried the given approach but I'm getting the below error. I have searched and I came to know that I need to apply few notes to overcome from this issue.
will there be any issue if we are not interested in applying the notes ?.
Because Images will be uploaded from a ZREPORT(i.e, pure ABAP) and those images I should populate in Webdynpro screen.
Thanks
Regards,
Giri
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.