cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion from IResouce (WDJ) to XSTRING (ABAP)

Amey-Mogare
Contributor
0 Kudos

Hi all,

In FileUploadUIElement, we need to bind a Resource to property of this element.

In WDA, we bind it to type XSTRING and in WDJ we bind it to type IResource.

Now I am developing a RFC which uploads a file on SAP Content Server using this FileUploadUIElement. I want use this RFC from both WDJ as well as from WDA.

I have posted this question on WDA forum and got a pretty promising reply that I should use XSTRING as import parameter.

Of course, we can convert Resource to InputStream using this code:-


InputStream stream = resource.read(true);

Can any WDJ expert comment on question that was put forward by Thomas in his last reply in above thread? About interfacing using InputStream at WDJ side and XSTRING at WDA side??

Thanks and regards,

Amey Mogare

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

As far as I know 'binary' data type should be used.

Amey-Mogare
Contributor
0 Kudos

Hi Aviad,

Can you please elaborate? Is XSTRING not compatible with InputStream at java side?

Thanks and regards,

Amey Mogare

Former Member
0 Kudos

XSTRING is compatiable to binary type in java.

You can extracte the binary from an InputStream using the relevant API.

Amey-Mogare
Contributor
0 Kudos

Thank you Aviad!

That answered my question.

With regards,

Amey Mogare