Skip to Content
0
Former Member
Apr 24, 2011 at 04:06 PM

Need to display an image in Webdynpro Java

68 Views

Hi All,

I need to display an image in webdynpro java application. Actually the image is nothing but an output of a RFC call.

So this is the BAPI am consuming from webdynpro application, SO_DYNP_DOCUMENT_DISPLAY.

When I execute the RFC from SAP it simply displaying the image as output, but I don't know how to capture the same output in my webdynpro application context or code. Please suggest me the right way to do the same.

Also I got another customized BAPI which returns the same image in three format

1 Binary

2 Hexa

3 exString

Here I can read both binary and hexa in my application but not able to render the image from the retrieved binary and hexa contents. I heard that exString is the right format to receive and process image in webdynpro application, but here am not even able to read the exString from the model.

Also I have done all the basic requirements in the webdynpro. Like created image componet, created dynamic url using IWDResource and mapped the same to the image datasource with no issues. The only issue is with the BAPI or data format I guess. So please suggest me the correct way to do the same.

Thanks & Regards

Rajesh A