INFORMIX
DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home Contents Index Master Index New Book

mi_large_object_filename()

Given a smart-large-object handle and a specification, the mi_large_object_filename() function returns a pathname for mi_large_object_to_file() to use if it copies the smart large object to a file.

Syntax

Usage

You can use this function with either BLOB or CLOB objects.

The mi_large_object_filename() function is useful in an application that converts a smart large object to a server file with mi_large_object_to_file(), runs some kind of conversion program on the file, and then sends it to the client with mi_file_to_file(). The mi_large_object_filename() can get the argument required by mi_file_to_file().

Free LO_handle afterward with mi_free() if LO_handle is not returned on export. Also free the resulting filename with mi_free().

Tip: Informix provides the mi_large_object_filename() function for backward compatibility only. Use the mi_lo_filename() function for all new DataBlade routines.

Return Values

On success, returns the full pathname of the file described. On failure, returns NULL.

Related Topics

See the descriptions of the following functions: mi_file_to_file() and mi_large_object_to_file().




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.