CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Writing Binary Files

 



djpaul
Deleted

Jul 20, 2000, 9:02 AM

Post #1 of 3 (1293 views)
Writing Binary Files Can't Post

I am working on an upload script which can upload image files.

I am using cgi-lib.pl, because I can't figure out how to install the CGI.pm module. Anyways, here is what I have. When I run this part of the script the image file, when accessed through a browser, looks all messed up. I thought I put the file in binary mode, so why does it still mess up?

open (ORD, ">/usr/www/users/biggins/domains/netifieds.com/write/file.jpg");
binmode (ORD);
print ORD $in{'upfile'};
close (ORD);

when I upload anything other than an image file, it works fine. What is going on?

Thanks ahead of time,
Paul


dws
Deleted

Jul 21, 2000, 12:17 AM

Post #2 of 3 (1293 views)
Re: Writing Binary Files [In reply to] Can't Post

Answered in the Intermediate forum. Please don't post duplicate questions.


errr
Deleted

Aug 15, 2000, 10:17 AM

Post #3 of 3 (1293 views)
Re: Writing Binary Files [In reply to] Can't Post

You cannot figure out how to install a module that COMES WITH PERL 5 and you're posting in Advanced???

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives