Has no effect if the stream was already open for reading. If the stream was already open for writing, it is flushed before being reopened for reading. Throws an ObjectNotSavedException if this BigBinary object is an attribute of an entity that has not yet been created in the database. Throws an ObjectNotFoundException if this object is null.
Syntax
public void openForRead()
Examples
– Opens a binary book image for reading.
Book book = Book.findByPrimaryKey(bookID);
com.sybase.persistence.BigBinary image = book.getCover();
image.openForRead();