Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problem regarding xstring

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

Former Member
replied

Hi Prashant,

Try the FMs

SCMS_XSTRING_TO_BINARY and SCMS_BINARY_TO_XSTRING for xstring to binary conversion and vice versa.

Regards,

Anubhav

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question