setContentFromBytes (MIMEEntity - Java™)
Sets the content of the current MIME entity from an uninterpreted byte stream.
Note: This method is new with Release 6.
Defined in
Syntax
public void setContentFromBytes(Stream stream, String contentType, int encoding)
throws NotesException
Parameters
Stream stream
The byte input. This input replaces any existing content. If the stream is empty, any current content is removed.
String contentType
Content type/subtype of input. This parameter generates a Content-Type header.
int encoding
The MIME transfer encoding, which should reflect the encoding of the input stream. This parameter generates a Content-Transfer-Encoding header. See also encodeContent.
- MIMEEntity.ENC_BASE64 -- Content-Transfer-Encoding is "base64"
- MIMEEntity.ENC_EXTENSION -- Content-Transfer-Encoding is user-defined
- MIMEEntity.ENC_IDENTITY_7BIT -- Content-Transfer-Encoding is "7bit"
- MIMEEntity.ENC_IDENTITY_8BIT -- Content-Transfer-Encoding is "8bit"
- MIMEEntity.ENC_IDENTITY_BINARY -- Content-Transfer-Encoding is "binary"
- MIMEEntity.ENC_NONE -- no Content-Transfer-Encoding header
- MIMEEntity.ENC_QUOTED_PRINTABLE -- Content-Transfer-Encoding is "quoted-printable"
Usage
This method sets the stream Position at end of stream.