mongogridfsfile.getbytes(3) php man page | unix.com

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 bytes

SYNOPSIS
public string MongoGridFSFile::getBytes (void )
DESCRIPTION
Warning: this will load the file into memory. If the file is bigger than your memory, this will cause problems!
PARAMETERS
This function has no parameters.
RETURN VALUES
Returns a string of the bytes in the file.
EXAMPLES
Example #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
imagecreatefromxbm(3) - php
imagegif(3) - php
imagepng(3) - php
imagepalettecopy(3) - php
ps_open_image(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Please Welcome Nicki Paul to the Moderator Team!