On Fri, 2008-10-31 at 14:18 +0100, Oleg Kalnichevski wrote:
> On Thu, 2008-10-30 at 13:32 +0100, Christine wrote:
> > Hi,
> > I'm probably overlooking something, but how do I set the content-type in
> > a filebody in a multipart message? By default it gets set to
> > "application/octetstream" but it needs to be "image/jpeg". I'm trying to
> > upload a file to Picasaweb.
> > 
> > dagdag
> > Christine
> > 
> 
> It is an oversight on my part. Please open a change request in JIRA.
> Subclassing FileBody and overriding #getMediaType(), #getSubType() and
> #getMimeType() would be a reasonable workaround.

That's what I've done, took less than three minutes to get it working.
I'll open a request in jira.

Christine

> 
> Oleg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
dagdag is just a two character rotation of byebye
www.christine.nl


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to