URAvgDeveloper101 has asked for the wisdom of the Perl Monks concerning the following question:
Now I want to Base64 encode @rawdata. Can I do this without having to encode the file itself on the file system? You may ask why I want to do it this way. The reason for this, is because the data is a binary file and I am trying to send it via HTTP through Perl's LWP library. When I attempt to do this, Perl URL-encodes it which I DO NOT want, or at the very least, want to avoid in some manner. Maybe there is a way to simply tell Perl not to URL-encode it. I don't know. Thanks for your help in advance.open(DATA, $datafile) || die ("Could not open file"); my @rawdata=<DATA>; close(DATA);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to Base64 Encode an array variable??
by ikegami (Patriarch) on Feb 01, 2010 at 15:03 UTC | |
by zentara (Cardinal) on Feb 01, 2010 at 16:15 UTC | |
by ikegami (Patriarch) on Feb 01, 2010 at 16:58 UTC | |
|
Re: How to Base64 Encode an array variable??
by Anonymous Monk on Feb 01, 2010 at 15:00 UTC | |
|
Re: How to Base64 Encode an array variable??
by ambrus (Abbot) on Feb 02, 2010 at 09:55 UTC | |
|
Re: How to Base64 Encode an array variable??
by ambrus (Abbot) on Feb 02, 2010 at 22:12 UTC |