Application Development and Automation 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: 
Read only

How to get the image from Binary content

Former Member
0 Likes
1,242

Hi All,

.I have Binary content in the Internal table.How to get the image from that Binary Content.

Is there any function Module or Methods to solve this problem.

Thanks.

Hi All,

.I have Binary content in the Internal table.How to get the image from that Binary Content.

Is there any function Module or Methods to solve this problem.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
799

Suppose you have the binary content of an image in lt_data.

You create a temperate URL by:

CALL FUNCTION 'DP_CREATE_URL'

EXPORTING

type = 'IMAGE'

subtype = 'GIF'

TABLES

data = lt_data

CHANGING

url = lv_url.

The 'IMAGE'/'GIF' is the MIME type of your image.

Then you pass this URL to the method LOAD_PICTURE_FROM_URL of the picture control.

Read only

0 Likes
799

Hi,

Thank You for ur reply.

I want to display that image in the smartform.

How to display that.Please

Thanks.

Read only

0 Likes
799

Hi

Execute the transaction

<b>SMW0</b> for adding the Binary data images

select Binary data excute the tcode

displays the list

Press CREATE

Enter some Zobject name

Import filename (to where it should import)

In the WEB respository

select -> settings -> assign MIME editor

Image/ipg and come out

Goto SM30

Enter SSM_CUST

Mainatain

start_image = ZMIME (image name).

Enter the picture ID and OBJECT and save .

Reward points if useful

Regards

Anji