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: 

Import and Display GIF images

Former Member
0 Kudos

Hi,

I'm trying to manage images in Abap program.

Reading on this forum, I'm able to import BMP e TIFF files (via SE78) and display them into a customer control.

Now I'm trying to manage also GIF images.

I'm using tc SMW0 to import gif images but with no result.

This is what I done:

1. call SMW0

2. select BINARY DATA

3. Run (no parameters specified)

4. New button

5. Import the GIF file.

The system display the "No MIME type assigned to object D:\logo.gif" and no images is added.

What I have to do?

Thanks

Salvatore

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

In SMW0, Goto Menu, Settings->Maintain MIME Types..

Click on CREATE button,

Add type as <b>image/gif</b>

extenstion as <b>*.gif</b>

If the entry does not exist already...

Hope this helps..

Please award points and close the post if this is useful..

Sri

6 REPLIES 6

Former Member
0 Kudos

Hi,

In SMW0, Goto Menu, Settings->Maintain MIME Types..

Click on CREATE button,

Add type as <b>image/gif</b>

extenstion as <b>*.gif</b>

If the entry does not exist already...

Hope this helps..

Please award points and close the post if this is useful..

Sri

0 Kudos

Dear All,

Is there any option to upload bulk jpg or gif images with a single shot using SMW0. I mean is it possible through BDC. Pls let me know

Amitava

0 Kudos

Hi Sri ,

Your answer is working perfectly.

Thanks.

Regards,

Rajneesh Gupta

former_member188685
Active Contributor
0 Kudos

hi Check mime type for gif is maintained or not.

regards

vijay

Former Member
0 Kudos

Hi Salvatore,

To display the images in Container you need to

maintain tem in Business documnets.

Follow the below steps :

1) Goto tcode OAER.

2) Give class name, as type 'OT' and Key name.

3) Execute it and here you create document and select

screen in the Document types then upload the bmp or

gif file and save it.

4) After that use this in when displaying in Container.

Thanks&Regards,

Siri.

Kindly award points if it is useful.

Message was edited by: Srilatha T

0 Kudos

Thanks for your support!

I solved my problem!

I added MIME types for GIF and for JPG.

To display images in Customer Control I used function 'DP_PUBLISH_WWW_URL' (see SAP_PICTURE_DEMO).

This function doesn't work with BMP. (no problem I have the solution...)

Regards

Salvatore