cancel
Showing results for 
Search instead for 
Did you mean: 

image [string] to xstring conversion

Former Member
0 Kudos

hey there.

is it possible to convert an image (STRING) into an Xstring ?

i have an url (www.xyz.de/test.bmp) and want to convert this string into an Xstring. Anybody knows how to do that?

Thx for ur help,

thomas

Edited by: Thomas Scharl on Oct 6, 2010 5:40 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

i hope it can be done by calling the function module 'SCMS_STRING_TO_XSTRING'.

Regards

Vinodh

Former Member
0 Kudos

@ vinodh hey i've tried that fm. it works fine, creates an xstring. BUT it doesnt convert the Image (BMP) -file into an xstring. Instead it just convertst the string url-text ;(

@Mrinmoy Dutta . thx i will try that. Did you think about any special method of that class to help me?

Edited by: Thomas Scharl on Oct 8, 2010 10:48 AM

Former Member
0 Kudos

Hello,

Please check this emthod GET_BDS_GRAPHIC_AS_BMP. This used to convert BMP to xstring.

But you are using url..so check once..

Regards,

Mrinmoy

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi thomas,

You can also see this FM SCMS_BINARY_TO_XSTRING and is modify it according to your need. That will convert as you expected. It takes bitmap image as input and outputs as XSTRING.

Regards

Vinodh

Former Member
0 Kudos

I used class (not standard) ZCL_ABAP_BITMAP which uses FM SCMS_BINARY_TO_XSTRING

Former Member
0 Kudos

Hi,

Check this class "CL_SSF_XSF_UTILITIES" if it helps you.

Thanks,

Mrinmoy