downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

ibase_blob_get> <ibase_blob_create
[edit] Last updated: Sun, 19 May 2013

view this page in

ibase_blob_echo

(PHP 5)

ibase_blob_echoEnvia o conteúdo do blob para o browser

Descrição

bool ibase_blob_echo ([ resource $link_identifier ], string $blob_id )

Esta função abre um BLOB para leitura e envia seu conteúdo diretamente para a saída padrão (o browser, na maioria dos casos).

Parâmetros

link_identifier

Um link identificador InterBase. Se omitido, o último link aberto é usado.

blob_id

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em caso de falha.

Veja Também



add a note add a note User Contributed Notes ibase_blob_echo - [1 notes]
up
0
int21h
1 year ago
here is an example if image.php

<?php
if (isset($_REQUEST['imageid']) AND $_REQUEST['imageid']>0) {
   
$db = 'host:/var/db/mydb.fdb';
   
$dbusername = 'sysdba';
   
$dbpassword = 'masterkey';
   
$query = "SELECT IMAGEDATA, MIME FROM IMAGES WHERE IMAGEID=".$_REQUEST['imageid'];
   
$dbh = ibase_connect($db, $dbusername, $dbpassword, 'UTF8') or die('Couldn't connect DB');
    $result = ibase_query($query);   
    $data = ibase_fetch_object($result);
    if ($data)
    {
        header("Content-type: ".$data->MIME);
        ibase_blob_echo ($data->IMAGEDATA);
    }
    ibase_close($dbh);
}
?>

 
show source | credits | sitemap | contact | advertising | mirror sites