ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:blobdecode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
reference:blobdecode [2015/08/02 23:55] mnewnhamv5:reference:connection:blobdecode [2016/01/17 02:37] (current) – ↷ Page moved from v5:reference:blobdecode to v5:reference:connection:blobdecode mnewnham
Line 1: Line 1:
 +====== blobDecode ======
 +~~NOTOC~~
 +<WRAP info>
 +Support for this function is limited. See the [[v5:database:feature_comparison|Feature Comparison Matrix]]
 +</WRAP>
 +<WRAP right box>
 +== Syntax ==
 +  mixed blobDecode(
 +      string $blob
 +  )
 +</WRAP>
 +===== Description =====
 +The function ''blobDecode()'' decodes a blob field and returns the value of the field or false if the function fails.
  
 +-------------------------------
 +===== Usage =====
 +<code php>
 +
 +$SQL = "SELECT blob_field FROM table";
 +$blob = $db->blobDecode($db->getOne($SQL));
 +
 +file_put_contents('/temp/stored.jpg',$blob);
 +
 +
 +</code>
v5/reference/connection/blobdecode.txt · Last modified: 2016/01/17 02:37 by mnewnham