
djpaul
Deleted
Jul 20, 2000, 9:02 AM
Post #1 of 3
(914 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
|