Hi Vijay,
Thanks for your answer. But it is not working. The thing is that the images are stored in my pc, i tried to use an RFC for getting the xstring image and it works when it is executed from SAP but when i call the RFC from the portal (webdynpro), the RFC shows a Dump and cannot access the file. (Exception condition "NO_BATCH" raised., error key: RFC_ERROR_SYSTEM_FAILURE)
Do you know how can i get the xstring or byte array without bapi or RFC? only using webdynpro JAVA? and then use the code you told me before?
Thanks!!