Skip to Content
author's profile photo Former Member
Former Member

How to handle "byte" data type

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2008 at 04:35 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2008 at 08:15 AM

    Hi Bhanu

    please check this link

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

    You will solve your problem

    Regards

    Ruturaj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2008 at 08:33 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2008 at 04:22 AM

    HI,

    to get byte[] from Resource follow this thread,

    get-byte-from-resource

    Regards,

    ramesh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.