Read from an odb stream
Most backends don't implement streaming reads
the stream
a user-allocated buffer to store the data in.
the buffer's length
0 if the read succeeded, error code otherwise