Reads a chunk of data from the stream.
- (SUPNullableBinary)read :(SUPLong)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.
SUPSampleBook *book = [SUPSampleBook findByPrimaryKey:bookID]; SUPBigBinary *image = book.cover; int bufferLength2 = 1024; [image openForRead]; NSData *data = [image read:bufferLength];