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

mi_large_object_to_file()

Given a smart-large-object handle, the mi_large_object_to_file() function writes the contents of the smart large object (the source object) to a file (the destination file).

Syntax

Usage

The file is assumed to be on the client computer unless the MI_LO_SERVER_FILE bit of the flags argument is set, in which case it is assumed to be on the server computer.

The mi_large_object_to_file() function is useful for writing export functions for opaque data types that contain smart large objects.

Use mi_free() to free this pathname when it is no longer needed.

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

Return Values

On success, returns the full pathname of the file it has created and written; on failure, returns NULL.

Related Topics

See the descriptions of the following functions: mi_file_to_large_object(), mi_large_object_filename(), mi_open()




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