# classname_fieldname_get(blob)

This function retrieves a value from a blob.

### Prototype

>         MCO_RET	classname_fieldname_get(	/*IN*/ classname *handle,
>                               /*IN*/ uint4 start_offset,
>                               /*OUT*/ char *dest,
>                               /*IN*/ uint4 dest_size,
>                               /*OUT*/ uint4 *len);

### Arguments

handle | A pointer to a classname handle
start_offset | The offset from the start of the blob from where reading will begin
dest | A pointer to a buffer to receive the element’s contents
dest_size | The size of the dest buffer
len | A uint4 pointer to receive the number of bytes written to dest

### Description

This form of the function applies to elements that are of type blob.

### Return Codes

MCO_S_OK | The value was put successfully
MCO_E_EMPTYBLOB | Blob was not been written
MCO_E_TRANSACT |
MCO_ERR_OBJECT_HANDLE |

Related Topics