cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle "byte" data type

Former Member
0 Kudos

Hi,

In web dynpro java project to consume a web service, I am unable to handle "byte" data type in binding wizard. It is not allowing to bind a element saying that "Context Attribute with Java Native Type BYTE cannot be selected". Please help me to resolve this.

Thank you.

Regards

Bhanu.

Accepted Solutions (1)

Accepted Solutions (1)

former_member192434
Active Contributor
0 Kudos

Hi

you can define byte[] in golobal area, at the end of iview.

//@@begin others

byte b1[];

//@@end

IWDResource r;

byte b[];

InputStream inputStream;

try {

inputStream = r.read(true);

int x = inputStream.read(b);

} catch (IOException e) {

e.printStackTrace();

}

Regards

Anup

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Bhanu

please check this link

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0d9336b-b4cf-2910-bdbf-b00d89bd...

You will solve your problem

Regards

Ruturaj

Former Member
0 Kudos

HI,

to get byte[] from Resource follow this thread,

Regards,

ramesh

Former Member
0 Kudos

Create a Value Attribute with type com.sap.ide.webdynpro.uielementdefinitions.Resource