users@jersey.java.net

Re: [Jersey] Automatic encoding/decoding of byte[] to base64Binary fields

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 10 Feb 2009 11:28:44 +0100

Hi Andrew,

Yes, the behavior you describe is supported by JAXB.

Paul.

On Feb 9, 2009, at 8:59 PM, Andrew Feller wrote:

> QUESTION: Given that both the input parameter (Class A) and return
> value (Class B) for a @POST method are annotated with the
> @XmlRootElement annotations, have a valid XSD, and both contain a
> byte[] property mapped to a XSD base64Binary element, will Jersey
> automatically encode/decode the byte[] array to base64?
>
> Thanks for answering such a stupid question. =\
> --
> Andrew Feller, Analyst
> LSU University Information Services
> 200 Frey Computing Services Center
> Baton Rouge, LA 70803
> Office: 225.578.3737
> Fax: 225.578.6400