fbsql_create_blob

(PHP 4 >= 4.2.0, PHP 5, PHP 7)

fbsql_create_blobCreate a BLOB

说锟斤拷

fbsql_create_blob ( string $blob_data [, resource $link_identifier ] ) : string

Creates a BLOB from the given data.

锟斤拷锟斤拷

blob_data

The BLOB data.

link_identifier

锟斤拷 fbsql_connect() 锟斤拷 fbsql_pconnect() 锟斤拷锟截碉拷 FrontBase 锟斤拷锟接憋拷识锟斤拷.

锟斤拷锟窖★拷锟轿粗革拷锟斤拷锟斤拷锟斤拷锟斤拷岢拷圆锟斤拷锟揭伙拷锟斤拷锟� FrontBase 锟斤拷锟斤拷锟斤拷锟侥匡拷锟斤拷锟斤拷锟接o拷锟斤拷锟斤拷没锟斤拷锟揭碉拷锟斤拷锟斤拷锟斤拷锟斤拷锟接o拷锟结尝锟斤拷通锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 fbsql_connect() 锟斤拷锟斤拷锟斤拷一锟斤拷锟斤拷

锟斤拷锟斤拷值

Returns a resource handle to the newly created BLOB, which can be used with insert and update commands to store the BLOB in the database.

锟斤拷锟斤拷

Example #1 fbsql_create_blob() example

<?php
$link 
fbsql_pconnect("localhost""_SYSTEM""secret")
    or die(
"Could not connect");
$filename "blobfile.bin";
$fp fopen($filename"rb");
$blobdata fread($fpfilesize($filename));
fclose($fp);

$blobHandle fbsql_create_blob($blobdata$link);

$sql "INSERT INTO BLOB_TABLE (BLOB_COLUMN) VALUES ($blobHandle);";
$rs fbsql_query($sql$link);
?>

锟轿硷拷