downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

MongoGridFSFile::getFilename> <MongoGridfsFile::__construct
[edit] Last updated: Fri, 24 Jun 2011

view this page in

MongoGridFSFile::getBytes

(PECL mongo >=0.9.0)

MongoGridFSFile::getBytesبازگرداندن محتوای این فایل به عنوان رشته بایت‌ها

Description

public string MongoGridFSFile::getBytes ( void )

هشدار: این متد فایل را در حافظه بارگذاری خواهد کرد. اگر فایل بزرگ‌تر از حافظه باشد مشکل پیش خواهد آمد.

Parameters

This function has no parameters.

Return Values

بازگرداندن رشته به بایت در فایل.

Examples

Example #1 مثال MongoGridFSFile::getBytes()

<?php

$images 
$db->my_db->getGridFS('images');

$image $images->findOne('jwage.png');

header('Content-type: image/png;');
echo 
$image->getBytes();
?>


add a note add a note User Contributed Notes MongoGridFSFile::getBytes - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites