This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes How to set unique boundary string in MimeMultipart? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to set unique boundary string in MimeMultipart?" Watch "How to set unique boundary string in MimeMultipart?" New topic
Author

How to set unique boundary string in MimeMultipart?

Jim Plunkett
Greenhorn

Joined: Aug 23, 2001
Posts: 9
I'd like to be able to specify the Unique Boundary String that will be used in separating the parts of my MimeMultipart objects. However, the doc (pasted below) implies that this is constructed automatically.
Does anyone know how I might be able to control this?
Thanks,
Jim!
=========+=========+=========+=========+=========+=========+
MimeMultipart
public MimeMultipart()
Default constructor. An empty MimeMultipart object is created. Its content type is set to "multipart/mixed".
A unique boundary string is generated and this string is setup as the "boundary" parameter for the contentType field.
MimeBodyParts may be added later.
=========+=========+=========+=========+=========+=========+
sandeepz putrevu
Greenhorn

Joined: Feb 06, 2007
Posts: 7

Any answer to this age old question ?
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to set unique boundary string in MimeMultipart?
 
It's not a secret anymore!