Forgot to mention i've got no problem with byte[]'s in the XML but i'd prefer to use streams if possible. I'm not sure if there is a way to have streams inside the XML, or if its better to use attachments/multipart instead?
Regards, Kynan Kynan Fraser wrote: > > Hi All, > > My use case is I need to support a POST operation for clients to send an > XML representation of a complex type (like a mail) containing a mix of > strings and (multiple) binary objects (mail attachments). > > I can handle a post just containing a single binary as an input stream or > byte[], or the XML by itself easily enough, but I'm not sure of the best > way to handle them side by side and also multiple binary objects (ideally > streams?) instead of just one inside the xml complex type. Should they be > base64 encoded binary objects inside the XML? Attachments? > > I've read a bit about jaxrs support for multiparts but i'm not sure if > thats my best option... any help/direction is appreciated. > > Thanks, > Kynan > -- View this message in context: http://www.nabble.com/JAX-RS%3A-Best-approach-for-POST-operation-of-a-complex-type-containing-binary-object-tp24350931p24351262.html Sent from the cxf-user mailing list archive at Nabble.com.
