Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How can we convert graphics (image) as raw data

tcsabarinathan
Explorer
0 Kudos

How to export graphic data into memory and get from 'LIST_FROM_MEMORY' fm ?

or

What are the ways to get raw data value for a graphic image that is uploaded using se78.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sabrinathan,

I dont understand the first part of your question.

Second part.

You could use the static method GET_BDS_GRAPHIC_AS_BMP of class CL_SSF_XSF_UTILITIES by passing in the appropriate parameters. The data is returned as a XSTRING . For conversion of XSTRING to RAW , you could use SCMS_XSTRING_TO_BINARY.

The parameters passed would be; TD Object = GRAPHICS , TDNAME = 'Your Img name' ,TDID = 'BMAP' in the case of Bitmaps and BTYPE as  BMON - For black and white,BCOL - For color.

I hope this helps.

Thanks,

Venkat.

Message was edited by: Venkat Gowrishankar

3 REPLIES 3

Former Member
0 Kudos

Hi Sabrinathan,

I dont understand the first part of your question.

Second part.

You could use the static method GET_BDS_GRAPHIC_AS_BMP of class CL_SSF_XSF_UTILITIES by passing in the appropriate parameters. The data is returned as a XSTRING . For conversion of XSTRING to RAW , you could use SCMS_XSTRING_TO_BINARY.

The parameters passed would be; TD Object = GRAPHICS , TDNAME = 'Your Img name' ,TDID = 'BMAP' in the case of Bitmaps and BTYPE as  BMON - For black and white,BCOL - For color.

I hope this helps.

Thanks,

Venkat.

Message was edited by: Venkat Gowrishankar

0 Kudos

Hi Venkat,

Thanks alot.

I used table_compress to make RAW data of my HRFORM and attaching it with a mail. In addition i converted the image(logo) into RAW data and trying to concatenate both and send mail . Is it possible ? or is there any other way to do ? (hope you understand my question)

0 Kudos

HI Sabarinathan,

To be honest, I do not have much idea of HR Forms as I have not worked in them .

Would you be sending 2 attachments? - the HR form and the logo. Is my understanding correct here?. If so, then this is possible .

Thanks,

Venkat.