users@jersey.java.net

Re: [Jersey] Sending binary files over multipart/mixed

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 24 Nov 2008 22:30:48 +0100

On Nov 24, 2008, at 10:15 PM, Gili wrote:

> Craig McClanahan (via Nabble) wrote:
> > Binary entities will work just fine with multipart/mixed, just
> like they
> > work fine on individual entities with media types like
> > "application/octet-stream".
>
> Yes, but it turns out that the content-type is not enough.
> What
> Content-Transfer-Encoding does jersey-multipart use by default?
> http://en.wikipedia.org/wiki/MIME#Content-Transfer-Encoding
>

That refers to *SMTP* and not *HTTP*, they are very different
transports:

   http://greenbytes.de/tech/webdav/rfc2616.html#no.content-transfer-encoding

Don't worry it all works fine with HTTP :-) the best i can suggest is
that you write a little server and client test and log/snoop the HTTP
request/response just to confirm it works as you want.

Paul.