++ed by:
ARJONES MINIMAL JWANG BESSARABV HAARG

18 PAUSE users
19 non-PAUSE users.

MongoDB Inc
and 4 contributors

NAME

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

VERSION

version v0.708.1.0

SYNOPSIS

    use MongoDB::GridFS::File;

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

NAME

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

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.

slurp ($length?, $offset?)

    $bytes = $file->slurp(50, 200);
    $all   = $file->slurp

Return 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 return.

AUTHOR

  Kristina Chodorow <kristina@mongodb.org>

AUTHORS

  • David Golden <david.golden@mongodb.org>

  • Mike Friedman <friedo@mongodb.com>

  • Kristina Chodorow <kristina@mongodb.org>

  • Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by MongoDB, Inc..

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004