Re: [Beepcore-java-users] Question about creating multipart messages
Status: Beta
Brought to you by:
huston
From: Huston <hu...@us...> - 2002-02-12 18:08:44
|
> My question is how do I go about creating a proper message that mimics the > example payload above? You should be able to create the appropriate OutputDataStream (probably StringOutputDataStream), set the Content-Type header, and add the rest as the data. > I know I can use InputStreamDataStream to add custom > headers to the message, I would use the latest code in cvs for this type of work. The DataStreams have been split into Input and Output DataStreams which cleared up a lot of confusion in the library. > but the fact that there are multiple Content-Type and > Content-Transfer-Encoding headers and boundaries is confusing me quite a bit. The thing to remember is that the java library only appends the mime headers to or removes them from the rest of the data. It doesn't actually change behavior based on any of the mime headers, that is left to the application. --Huston |