db_encode_blob

includes/database.pgsql.inc, line 210

Versions
4.6 – 6
db_encode_blob($data)

Returns a properly formatted Binary Large OBject value.

Parameters

$data Data to encode.

Return value

Encoded data.

Related topics

Code

<?php
function db_encode_blob($data) {
  return addcslashes($data, "\0..\37\\");
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.