public int readBlob(String blobId, long pos, byte[] buff, int off,
int length) throws Exception {
GridFSDBFile f = fs.findOne(new ObjectId(blobId));
if (f == null) {
throw new NotFoundException(blobId);
}
// todo provide a more efficient implementation
InputStream in = f.getInputStream();
try {
in.skip(pos);