@Override
public BlobAccess getBlobAccess(Record record, QName fieldName, FieldType fieldType, int...indexes)
throws BlobException {
if (!(fieldType.getValueType().getDeepestValueType() instanceof BlobValueType)) {
throw new BlobException("Cannot read a blob from a non-blob field type: " + fieldType.getName());
}
Blob blob = getBlobFromRecord(record, fieldName, fieldType, indexes);
return registry.getBlobAccess(blob);
}