MIME-tools
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/MIME/Decoder/Binary.pm view on Meta::CPAN
A generic decoder object; see L<MIME::Decoder> for usage.
=head1 DESCRIPTION
A MIME::Decoder subclass for the C<"binary"> encoding (in other words,
no encoding).
The C<"binary"> decoder is a special case, since it's ill-advised
to read the input line-by-line: after all, an uncompressed image file might
conceivably have loooooooooong stretches of bytes without a C<"\n"> among
them, and we don't want to risk blowing out our core. So, we
read-and-write fixed-size chunks.
Both the B<encoder> and B<decoder> do a simple pass-through of the data
from input to output.
=head1 SEE ALSO
L<MIME::Decoder>
lib/MIME/Decoder/Gzip64.pm view on Meta::CPAN
x-gzip64
Since this class relies on external programs which may not
exist on your machine, MIME-tools does not "install" it by default.
To use it, you need to say in your main program:
install MIME::Decoder::Gzip64 'x-gzip64';
Note: if this class isn't working for you, you may need to change the
commands it runs. In your main program, you can do so by setting up
the two commands which handle the compression/decompression.
use MIME::Decoder::Gzip64;
$MIME::Decoder::Gzip64::GZIP = 'gzip -c';
$MIME::Decoder::Gzip64::GUNZIP = 'gzip -d -c';
=head1 SEE ALSO
L<MIME::Decoder>
testmsgs/multi-2evil.msg view on Meta::CPAN
Content-Type: multipart/mixed; boundary="------------299A70B339B65A93542D2AE"
This is a multi-part message in MIME format.
--------------299A70B339B65A93542D2AE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
When unpacked, this message should produce two GIF files:
* The 1st should be called "3d-compress.gif"
* The 2nd should be called "3d-eye.gif"
Different ways of specifying the filenames have been used.
--
____ __
/ __/__________/_/ Eryq (eryq@rhine.gsfc.nasa.gov)
/ __/ _/ / / , / Hughes STX Corporation, NASA/Goddard
/___/_/ \ /\ /___
/_/ /_____/ http://selsvr.stx.com/~eryq/
testmsgs/multi-2evil.ref view on Meta::CPAN
"Encoding" => "7bit",
"Boundary" => "------------299A70B339B65A93542D2AE",
},
"Part_1" => {
"Size" => 417,
"Type" => "text/plain",
"Encoding" => "7bit",
"Charset" => "us-ascii"
},
"Part_2" => {
"Filename" => qq{/evil/because:ofpath3d-compress.gif},
"BodyFilename" => "because_ofpath3d-compress.gif",
"Size" => 419,
"Disposition" => "inline",
"Type" => "image/gif",
"Encoding" => "base64"
},
"Part_3" => {
"BodyFilename" => "3d-eye-is-an-e.dat",
"Size" => 357,
"Type" => "image/gif",
"Encoding" => "base64"
testmsgs/multi-2gifs.msg view on Meta::CPAN
Content-Type: multipart/mixed; boundary="------------299A70B339B65A93542D2AE"
This is a multi-part message in MIME format.
--------------299A70B339B65A93542D2AE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
When unpacked, this message should produce two GIF files:
* The 1st should be called "3d-compress.gif"
* The 2nd should be called "3d-eye.gif"
Different ways of specifying the filenames have been used.
--
____ __
/ __/__________/_/ Eryq (eryq@rhine.gsfc.nasa.gov)
/ __/ _/ / / , / Hughes STX Corporation, NASA/Goddard
/___/_/ \ /\ /___
/_/ /_____/ http://selsvr.stx.com/~eryq/
--------------299A70B339B65A93542D2AE
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="3d-compress.gif"
R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAA
AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbA
oFCY47EIqMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT
8Hl1B3kDAYYle202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0
qTurjHgLKAu0B5Wqopm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR
2bhwJGlXJQYG6mMKoeNoWSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIv
QceGWSMevpOYhl6CkydBHhBZQmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ
0mhMnfl0pDBFa6bUElSPWb0qtYuHrxlwcR17YsWMs2jTql3LFkQEADs=
--------------299A70B339B65A93542D2AE
testmsgs/multi-2gifs.ref view on Meta::CPAN
"Preamble" => "This is a multi-part message in MIME format.\n",
"Epilogue" => "That was a multi-part message in MIME format.\n",
},
"Part_1" => {
"Size" => 417,
"Type" => "text/plain",
"Encoding" => "7bit",
"Charset" => "us-ascii"
},
"Part_2" => {
"Filename" => "3d-compress.gif",
"BodyFilename" => "3d-compress.gif",
"Size" => 419,
"Disposition" => "inline",
"Type" => "image/gif",
"Encoding" => "base64"
},
"Part_3" => {
"Filename" => "3d-eye.gif",
"BodyFilename" => "3d-eye.gif",
"Size" => 357,
"Type" => "image/gif",
testmsgs/multi-weirdspace.msg view on Meta::CPAN
To: john-bigboote@eryq.pr.mcs.net
Subject: Two images for you...
Content-Type: multipart/mixed; boundary="------------299A70B339B65A93542D2AE"
--------------299A70B339B65A93542D2AE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
When unpacked, this message should produce two GIF files:
* The 1st should be called "3d-compress.gif"
* The 2nd should be called "3d-eye.gif"
There is an empty preamble, and linear space after the bounds.
--
____ __
/ __/__________/_/ Eryq (eryq@rhine.gsfc.nasa.gov)
/ __/ _/ / / , / Hughes STX Corporation, NASA/Goddard
/___/_/ \ /\ /___
/_/ /_____/ http://selsvr.stx.com/~eryq/
--------------299A70B339B65A93542D2AE
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="3d-compress.gif"
R0lGODdhKAAoAOMAAAAAAAAAgB6Q/y9PT25ubnCAkKBSLb6+vufn5/Xes/+lAP/6zQAAAAAA
AAAAAAAAACwAAAAAKAAoAAAE/hDJSau9eJLMOyYbcoxkaZ5oCkoH6L5wLMfiWqd4btZhmxbA
oFCY47EIqMJgyWw2ATjj7aRkAq5YwDMl9VGtKO0SiuoiTVlscsxt9c4HgXxUIA0EAVOVfDKT
8Hl1B3kDAYYle202XnGGgoMHhYckiWVuR3+OTgCGeZRslotwgJ2lnYigfZdTjQULr7ALBZN0
qTurjHgLKAu0B5Wqopm7J72etQN8t8Ijury+wMtvw8/Hv7Ylfs0BxCbGqMmK0yOOQ0GTCgrR
2bhwJGlXJQYG6mMKoeNoWSbzCWIACe5JwxQm3AkDAbUAQCiQhDZEBeBl6afgCsOBrD45edIv
QceGWSMevpOYhl6CkydBHhBZQmGKjihVshypjB9ClAHZMTugzOU7mzhBPiSZ5uDNnA7b/aTZ
0mhMnfl0pDBFa6bUElSPWb0qtYuHrxlwcR17YsWMs2jTql3LFkQEADs=
--------------299A70B339B65A93542D2AE
testmsgs/multi-weirdspace.ref view on Meta::CPAN
"Encoding" => "7bit",
"Boundary" => "------------299A70B339B65A93542D2AE"
},
"Part_1" => {
"Size" => 420,
"Type" => "text/plain",
"Encoding" => "7bit",
"Charset" => "us-ascii"
},
"Part_2" => {
"Filename" => "3d-compress.gif",
"Size" => 419,
"Disposition" => "inline",
"Type" => "image/gif",
"Encoding" => "base64"
},
"Part_3" => {
"Filename" => "3d-eye.gif",
"Size" => 357,
"Type" => "image/gif",
"Encoding" => "base64"
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.527 second using v1.00-cache-2.02-grep-82fe00e-cpan-1925d2aa809 )