get_blob

Use the get_blob v4 API method to retrieve an input blob parameter.

Declaration

 short get_blob(
		void            *arg_handle,
		a_sql_uint32    arg_num,
		a_v4_extfn_blob **blob
		)

Usage

Use get_blob to retrieve a blob input parameter after calling get_value(). Use the macro EXTFN_IS_INCOMPLETE to determine if a blob object is required to read the data for the value returned from get_value(), if piece_len < total_len. The blob object is returned as an output parameter and is owned by the caller.

get_blob obtains a blob handle that can be used to read the contents of the blob. Call this method only on columns that contain blob objects.

Parameters

Parameter Description
arg_handle Handle to the arguments in the server
arg_num The argument is a number 1...N
blob Output argument containing the blob object

Returns

1 if successful, 0 otherwise.