cancel
Showing results for 
Search instead for 
Did you mean: 

how to show JPG files or Pictures in webdynpro for abap

Former Member
0 Kudos

hi all,

how to insert a JPG file or a picture in webdynpro form and then what is the use of MIME object.

please give me the details as early as possible.

thanks and regards,

sai siva kumar

Accepted Solutions (0)

Answers (3)

Answers (3)

mohammed_anzys
Contributor
0 Kudos

Hi Sai,

First go to your directory and upload your jpg as a mime object.In the mime properties you could specify whether it as jpg or gif or anything.

Now you go to your view and create an image element , and in the properties give the image location as the location of the mime that you have uploaded.

/sap/webdynpro/main/main.jpg

if you have put the mime in your webdynpro component then you could directly mention main.jpg

Thanks

Anzy

Reward points if this solves your problem

Former Member
0 Kudos

Hi,

You can display images with the Image UIElement which can point to a URL. So if you store your JPEG file on the MIME then you have to generate a URL for this file and then make your Image UI Element point to this URL.

If your image is stored on a content server then generate a URL, as I said previously, set the source at runtime to the generated URL.

In both cases, make the source attribute of the Image UIElement point to a context attribute (type string should be ok) and use the code wizard to set the attribute.

Hope it helps,

Olivier MATT

PS: be sure that your image is a JPEG or any supported fileformat by your browser (WD do not handle image conversions).

Former Member
0 Kudos

Hi,

see <a href="http://help.sap.com/saphelp_nw70/helpdata/en/ec/bb08428dab5f24e10000000a1550b0/frameset.htm">this</a> on web icons and <a href="http://help.sap.com/saphelp_nw70/helpdata/en/44/15a40b56080d1be10000000a114a6b/frameset.htm">this</a> on integrating forms which exist in the form of a MIME object.

Regards, Heidi