conn
is a pointer to the connection descriptor that a previous call to mi_open() or mi_server_connect() established.
LO_fd
is a file descriptor for an existing smart large object
fname_spec
is the path to the operating-system file to copy into a smart large object.
flags
is a bitmask argument indicating how to open the source file.
offset
is the point to begin reading in the file. The offset value is the number of bytes from the beginning of the file, starting at 0.
0
amount
is the amount of the file to read, starting at the offset. An amount value of -1 means read to the end of the file.
-1
No
Yes
MI_O_EXCL
Open the file only if fname_spec does not exist.
MI_O_TRUNC
Zero out the input file before reading it.
MI_O_APPEND
Allow appending to the end of the file. (This function does not write to the source file.)
MI_O_RDWR
Open the file in read/write mode. (This function does not write to the source file.)
MI_O_RDONLY
Open the file in read-only mode.
MI_O_TEXT
Process the file as text (not binary). (Binary is used if you do not specify MI_O_TEXT.)
MI_O_SERVER_FILE
The fname_spec file is on the server computer.
MI_O_CLIENT_FILE
The fname_spec file is on the client computer.
The default flags value is:
MI_OK
The function was successful.
MI_ERROR
The function was not successful.