Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Displaying Image dynamically.

Hi All,

My requirement is to display image of employees based on the employee ID at runtime. For this i am getting byte[] of the image from the web-service.

And for this i am creating a image.gif file at the folder <ProjectFolder>/src/mimes/Components/<ComponentPackageName

> every time on the lead-select of the employee list. But the image is not getting displayed.

Is there any other way to display an image which is stored in the database.

thanks & regards,

Manoj

Former Member
Former Member replied

https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/WDResourceFactory.IWDResourceFactory.html#createCachedResource(byte[],%20java.lang.String,%20com.sap.tc.webdynpro.services.sal.url.api.WDWebResourceType)

Using this method, create a web resource, use its URL as the image source.

Armin

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question