ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:blobdecode

This is an old revision of the document!


blobDecode

Support for this function is limited. See the Feature Comparison Matrix

Syntax
mixed blobDecode(
    string $blob
)

Description

The function blobDecode() decodes a blob field and returns the value of the field or false if the function fails.


Usage

$SQL = "SELECT blob_field FROM table";
$blob = $db->blobDecode($db->getOne($SQL));
 
file_put_contents('/temp/stored.jpg',$blob);
v5/reference/connection/blobdecode.1452648623.txt.gz · Last modified: 2017/04/21 11:37 (external edit)