ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:blobdecode

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.txt · Last modified: 2016/01/17 02:37 by mnewnham