InputStream (EmbeddedObject - Java)

Read-only. InputStream representation of the contents of an EmbeddedObject, Item, or MIMEEntity object.

Note: This property is new with Release 5.0.3.

Defined in

EmbeddedObject, Item, MIMEEntity

Data type

java.io.InputStream

Syntax

public java.io.InputStream getInputStream()
    throws NotesException

Usage

EmbeddedObject.getInputStream creates a temporary file. The file is deleted when the EmbeddedObject is recycled, but only if the close() method of the InputStream object returned by this property has been called before the EmbeddedObject is recycled. Failure to explicitly close the InputStream object will result in the temporary file remaining in the filesystem, which can cause the system to run out of disk space when running an agent that processes many EmbeddedObjects.