"Toshiyuki Kimura" <[EMAIL PROTECTED]> wrote on 04.04.2003 13:07:27:

> Hi Kristjan,
>
>   Have you try with the following signature ?
> DataHandler(java.lang.Object obj, java.lang.String mimeType);

 I have tried putting a FileDataSource as the object and a mime type.
Then the mime type is correct however then the content of the file is
not included, its just empty.

What kind of Objects can you but into the DataHandler?
I am using DIME if that makes any difference.

> Best Regards,
>
>   Toshi (Toshiyuki Kimura) <[EMAIL PROTECTED]>
>   R&D Headquarters
>   NTT DATA Corporation
>
> -----Original Message-----
> From: Kristjan Bjarni Gudmundsson [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2003 9:50 PM
> To: [EMAIL PROTECTED]
> Subject: Change Content-Type for attachments?
>
> How can I change the Content-Type for AttachmentParts?
>
> AttachmentPart.setMimeHeader("Content-Type","image/gif")
>
> Doesn't work at all.
>
>

Reply via email to