NAME

MongoDB::GridFS::File - A Mongo GridFS file

VERSION

version 0.24

SYNOPSIS

use MongoDB::GridFS::File;

my $outfile = IO::File->new("outfile", "w");
my $file = $grid->find_one;
$file->print($outfile);

ATTRIBUTES

info

A hash of info information saved with this file.

METHODS

$written = $file->print($fh, 50, 200);

Writes the number of bytes specified from the offset specified to the given file handle. If no $length or $offset are given, the entire file is written to $fh. Returns the number of bytes written.

AUTHOR

Kristina Chodorow <kristina@mongodb.org>