Ernst has asked for the wisdom of the Perl Monks concerning the following question:
use MIME::Base64 qw(encode_base64); if (open (INHOUD, "$regel")) { binmode INHOUD; $bufsize = 60*57; print << "EOT1"; MIME-Version: 1.0 Content-Type: text; boundary="_----------=_10167391557129230" --_----------=_10167391557129230 Content-Transfer-Encoding: base64 Content-Type: application/msword; filename="bw051122.doc" EOT1 while ($bufsize == 60*57) { read (INHOUD, $buffer, $bufsize); print encode_base64($buffer); }; close (INHOUD); print <<"EOT6"; --_----------=_10167391557129230-- EOT6 }
Edit: g0n - code tags
Edit: porterjohn - moved main content out of signature div
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Showing Word document in browser
by Celada (Monk) on Dec 12, 2005 at 16:42 UTC | |
by Ernst (Initiate) on Jan 12, 2006 at 12:57 UTC | |
by blazar (Canon) on Jan 12, 2006 at 13:08 UTC | |
by Ernst (Initiate) on Jan 12, 2006 at 13:58 UTC | |
by blazar (Canon) on Jan 12, 2006 at 14:28 UTC | |
|