read

fun Blob.read(size: Int = bytes, offset: Int = 0): ByteArray(source)

Reads size bytes from this blob, starting at offset, and returns them as a new ByteArray.

Throws

if offset and size are out of range for this blob, or if the read fails.