Net::CouchDb::Attach - Represent an attachment to a CouchDb document.
Representation of an attachment, this should normally be created via the attach method in Net::CouchDb::Document.
attach
Add an attachment. The parameter can be either:
A filename, which will be opened and attached.
A scalar reference, the contents of which will be attached.
A file handle, which will be fully read and attached.
Return the URI that this attachment can be found at (as a string).
Return the name of this attachment.
Return the content of this attachment as a string.
Note this does not use the same LWP::UserAgent object as the Net::CouchDb instance, so any connection cache will not be used.
David Leadbeater, <dgl at dgl dot cx>
<dgl at dgl dot cx>
Copyright 2007 David Leadbeater, all rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Net::CouchDb, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::CouchDb
CPAN shell
perl -MCPAN -e shell install Net::CouchDb
For more information on module installation, please visit the detailed CPAN module installation guide.