Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

xsd:base64Binary vs Datahandler

843833Apr 10 2009 — edited Apr 10 2009
Hi There,
I was developing a webservice using top down approach( wsdl to java). So in one of my complex types, I defined an element type as xsd:base64Binary( in wsdl file)
<xsd:element minOccurs="1" maxOccurs="1" name="token" type="xsd:base64Binary"/>

When I convert this wsdl to java, a java class for this complex type will be created and the type of token is javax.activation.DataHandler.

So in serverside if I have a byte array, how will I convert that to a valid javax.activation.DataHandler object and vice versa in client side?

I hope I have provided enough info here to understand the issue. Please feel free to ask otherwise.

Thanks,
Jose John
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 8 2009
Added on Apr 10 2009
1 comment
1,040 views