users@jersey.java.net

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

From: Andrew Feller <afelle1_at_lsu.edu>
Date: Tue, 10 Feb 2009 07:29:10 -0600

Morning Paul,

Thanks for answering a stupid question ^^; Hope you feel better.

Andy


On 2/10/09 4:28 AM, "Paul Sandoz" <Paul.Sandoz_at_Sun.COM> wrote:

> 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
>>
>>
>
>

-- 
Andrew Feller, Analyst
LSU University Information Services
200 Frey Computing Services Center
Baton Rouge, LA 70803
Office: 225.578.3737
Fax: 225.578.6400