Man Page: mongogridfsfile.getbytes
Operating Environment: php
Section: 3
MONGOGRIDFSFILE.GETBYTES(3) 1 MONGOGRIDFSFILE.GETBYTES(3) MongoGridFSFile::getBytes - Returns this file's contents as a string of bytesSYNOPSISpublic string MongoGridFSFile::getBytes (void )DESCRIPTIONWarning: this will load the file into memory. If the file is bigger than your memory, this will cause problems!PARAMETERSThis function has no parameters.RETURN VALUESReturns a string of the bytes in the file.EXAMPLESExample #1 MongoGridFSFile::getBytes example <?php $images = $db->my_db->getGridFS('images'); $image = $images->findOne('jwage.png'); header('Content-type: image/png;'); echo $image->getBytes(); ?> PHP Documentation Group MONGOGRIDFSFILE.GETBYTES(3)
| Related Man Pages |
|---|
| imageflip(3) - php |
| imagesavealpha(3) - php |
| imagecolorstotal(3) - php |
| imagesetbrush(3) - php |
| imagick.readimageblob(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| User Guide: Posting in the Emergency Forum |
| Forum Video Tutorial: How to Use Code Tags |
| Status of UNIX.COM Forum Transformation |
| Denial Of Service Attack Update |