Home > PHP > Function > Firebird/InterBase > ibase_blob_import()

ibase_blob_import()

ibase_blob_import - Create blob, copy file in it, and close it

Syntax

string ibase_blob_import (resource $link_identifier, resource $file_handle, resource $file_handle, resource $link_identifier, resource $file_handle, resource $file_handle)

Arguments

  • link_identifier - An InterBase link identifier. If omitted, the last opened link is assumed.
  • file_handle - The file handle is a handle returned by fopen().
  • file_handle
  • link_identifier - An InterBase link identifier. If omitted, the last opened link is assumed.
  • file_handle - The file handle is a handle returned by fopen().
  • file_handle

Description

This function creates a BLOB, reads an entire file into it, closes it and returns the assigned BLOB id.

Version

PHP 4, 5

Return value

Returns the BLOB id on success, or FALSE on error.