cancel
Showing results for 
Search instead for 
Did you mean: 

change an image

Former Member
0 Kudos

hi

is it possible to change at runtime an image I put in my mimes folder using Graphics?

regards

yuval

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can load the original image into memory, change it and create a new resource which will be stored in the server's cache.

Former Member
0 Kudos

Hi

Very good.

How do I do that?

How do I get a reference to an image I put in my MIMES folder?

regards

Yuval

former_member182598
Active Contributor
0 Kudos

Hi,

You can use this API:

http://help.sap.com/javadocs/NW04/current/wd/com/sap/tc/webdynpro/services/sal/url/api/WDURLGenerato...

To access a blank.html file in the <mimes><Components><packagename.componentName>

I am using

WDURLGenerator.getResourcePath(

wdThis.wdGet<controller>Controller().wdGetAPI().getDeployableObjectPart(),"blank.html");

Thanks

Prashant

Former Member
0 Kudos

Hi Kumar

1. Thank you very much for yr help

2. Have you tried accessing an image in the Mimes folder as well?

3. I will try it out shortly.

regards

yuval

Former Member
0 Kudos

Hi Prashant,

1.Thank you very much for your help.

2. Points granted.

I have managed to do what I wanted namely change a jpg at runtime and present it to user.

Regards

yuval

Former Member
0 Kudos

Hi

You may also want to check a blog I wrote on how this can be done:

Link:[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/27326] [original link is broken] [original link is broken];

regards,

Y Peery

Answers (0)