MongoGridFS::storeBytesバイト列をデータベースに格納する 説明
   public mixed MongoGridFS::storeBytes
    ( string  
 $bytes
   [, array $metadata = array()
   [, array $options = array()
  ]] )パラメータ
 
 返り値格納したファイルドキュメントの _id を返します。 エラー / 例外chunks あるいは files コレクションへの追加に失敗した場合に MongoGridFSException をスローします。 例例1 MongoGridFS::storeBytes でのメタデータの追加 
<?php上の例の出力は、 たとえば以下のようになります。 
array(7) {
  ["_id"]=>
  string(8) "alphabet"
  ["uploadDate"]=>
  object(MongoDate)#7 (0) {
  }
  ["length"]=>
  int(26)
  ["chunkSize"]=>
  int(262144)
  ["md5"]=>
  string(32) "c3fcd3d76192e4007dfb496cca67e13b"
}
参考
  |