Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I manually set the mime type for an attached file?

attached file mime type
0
Posted

How do I manually set the mime type for an attached file?

0

Java:API:JavaMail:Attachments John Zukowski PREMIUM, Dec 31, 2006 You’ll need to subclass FileDataSource and override its getContentType() method to return your desired type.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.