Any previous contents of the value will be discarded. Throws an ObjectNotSavedException if this BigBinary object is an attribute of an entity that has not yet been created in the database.
Syntax
public void openForWrite(long newLength)
Parameters
newLength – The new value length in bytes. This parameter is required for some platforms, but for Android the parameter value is ignored, and can be specified as 0.
Examples
– Opens a binary book image for writing.
Book book = Book.findByPrimaryKey(bookID);
com.sybase.persistence.BigBinary image = book.getCover();
image.openForWrite(0);