cancel
Showing results for 
Search instead for 
Did you mean: 

how to store image in r3 table and get it in our application

Former Member
0 Kudos

Hi,

How to store image in r3 table and get it in our application when u run it.

Regards,

H.V.Swathi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

On Webdynpro you have the FileUpload and FileDownload elements to handle the File. To bring that file to R3 and from R3 you need two BAPIs. The design of those BAPIs can be make on several ways

Former Member
0 Kudos

Hi,

Thanks for ur reply.

I have created a function module to store image in the form of byte array and retrive it.

I want to retrive that byte array and display that in the image UI element.

How i can do that.

To retrive that byte array i have written code like this.

byte[] pic=wdContext.currentWaElement().getEmp_Image();
								IWDResource res=WDResourceFactory.createCachedResource(pic,"Image",WDWebResourceType.JPG_IMAGE);
													String url1 = res.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal());
		wdComponentAPI.getMessageManager().reportSuccess("urlllll"+url1);
													wdContext.currentResourseElement().setPicURL(url1);

PicURL value attribute is mapped to image source property.

Regards,

H.V.Swathi