cancel
Showing results for 
Search instead for 
Did you mean: 

Image Download Problem

Former Member
0 Kudos

Hi All,

I have uploaded a tiif image as a standard text.now my requirement is to download the same image, but I am unable to do so.

its showing the details in text format only.

I used Read_text FM and its giving me the text.

Is it possible to download the image.If yes how can I achieve this.

Regards

Lalit

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

Hello,

why did you save the picture as text? Why not SE78? To get a picture out of SE78 use code:

c_graphics TYPE tdobjectgr VALUE 'GRAPHICS',

c_bmap TYPE tdidgr VALUE 'BMAP' ,

c_bcol TYPE tdbtype VALUE 'BCOL'.

CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp

EXPORTING

p_object = c_graphics

p_name = lv_pernr1

p_id = c_bmap

p_btype = c_bcol

RECEIVING

p_bmp = ls_z_if_test_cv-im_photo

EXCEPTIONS

not_found = 1

internal_error = 2

OTHERS = 3.

If you really need to to save it as text (i doubt this), convert it. If you do it yourself - the coding - then the decoding (binary - text - binary) will work the opposite way. I guess you can use something like scms_binary_to_xstring.

Regards, Otto

Answers (0)