db_encode_blob

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

includes/database.pgsql.inc, line 210

<?php
function db_encode_blob($data) {
  return addcslashes($data, "\0..\37\\");
}
?>
Login or register to post comments
 
 

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.