on 04-20-2009 6:46 AM
hi
I am uploading image and its uploaded successfully and image displaying image in page.
here i am converting XSTRING to BINARY from to store in databse using this meathod
CALL METHOD cl_abap_gzip=>compress_binary
EXPORTING
raw_in = lv_file_content
IMPORTING
gzip_out = lv_xstring
gzip_out_len = lv_len.
now i want to display image in another page , now i am taking that BINARY content and converting into
XSTRING using this meathod
t_visitor-IMGCONTENT = lv_xstring .
CALL METHOD cl_abap_gzip=>decompress_binary
EXPORTING
gzip_in = t_visitor-IMGCONTENT
IMPORTING
raw_out = lv_file_content.
but in lv_file_content i am not getting XSTRING
i think thats why image is not desplaying
so plz tel me how to store XTRING or any other solution
THANKS
Hi Prashant,
Try the FMs
SCMS_XSTRING_TO_BINARY and SCMS_BINARY_TO_XSTRING for xstring to binary conversion and vice versa.
Regards,
Anubhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
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.