perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: File upload corruption with embperl upload example
Date Tue, 24 Apr 2001 06:48:25 GMT


> I'm using Randy Kobes' precompiled Apache distribution containing
> the following:
>
> Embperl 1.3b3/Windows NT 4.0/Apache 1.3.12/ModPerl 1.23/Perl
> 5.6.0
>
> When I use the Embperl upload example, files are getting somehow
> corrupted. The file size is not the same as the original and the file is
> not usable.
>

Have you turned on binmode when you write the file? Otherwise Perl will
translate LF to CRLF

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message