Reads a chunk of data from the stream.
public byte[] Read(long length)
Read returns a chunk of binary data read from the stream, or a null value if the end of the stream has been reached.
Book book = Book.FindByPrimaryKey(bookID); Sybase.Persistence.BigBinary image = book.Cover; image.OpenForRead(); byte[] binary = image.Read(bufferLength); while (binary != null) { binary = image.Read(bufferLength); } image.Close();