Write an in-memory buffer to the object database as a blob.
return the id of the written blob
repository where the blob will be written
data to be written into the blob
length of the data
0 or an error code