cancel
Showing results for 
Search instead for 
Did you mean: 

Context element for array of byte

Former Member
0 Kudos

Hello,

I have created a context value attribute of type "byte" in my web dynpro view.

Now I have a requirement where I have to populate above attribute with an array of type byte. i.e. byte[]

content = this.displayPrint().getBytes("UTF-8");

wdContext.currentContextElement().setHtmlFile(content);

HtmlFile is name of my value attribute.

It is giving me following error :

The method setHtmlFile(byte) in the type IPrivatePrinttestcompView.IContextElement is not applicable for the arguments (byte[])

How can I resolve it.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

just convert the array.