aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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 ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to set unique boundary string in MimeMultipart?
 
Similar Threads
How send file data to JSP/Servlet page and save to disk?
problem with images in web app
Mail API content type
Mail API content type
Sending mail through Exchange Server