getContentAsBytes (MIMEEntity - Java)

Gets the content of the current MIME entity as an uninterpreted byte stream.

Note: This method is new with Release 6.

Defined in

MIMEEntity

Syntax

public void getContentAsBytes(Stream stream) 
     throws NotesException
public void getContentAsBytes(Stream stream, boolean decoded) 
     throws NotesException

Parameters

Stream stream

Output medium for the byte stream.

boolean decoded

Specify true (default) to decode the content, false to leave any encoding in place.

Usage

This method sets the stream Position at end of stream.

Example