cancel
Showing results for 
Search instead for 
Did you mean: 

problem regarding xstring

former_member459142
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member184111
Active Contributor
0 Kudos

Hi Prashant,

Try the FMs

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

Regards,

Anubhav

Answers (0)