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

mi_file_to_file()

The mi_file_to_file() function copies files between the database server and a client.

Syntax

Usage

The mi_file_to_file() function can be used to copy a file (the source file) from a database server to a client, from a client to a database server, or from a database server to a database server. The mi_file_to_file() function does not support copies from client to client. Therefore, fromflags and toflags cannot both be set to MI_O_CLIENT_FILE.

In the database server, use the mi_free() function to free memory after the copy operation.

Return Values

On success, returns the pathname of the destination file; on failure, returns NULL.

Related Topics

For additional information, see the descriptions of the following functions: mi_file_to_large_object(), mi_large_object_filename(), and mi_large_object_to_file().




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