PERL file upload
Hello again. I wrote a PERL script that will upload an image file. But once the file is uploaded it becomes "garbled". In other words the picture transfers but looks like a fuzzy television picture after upload. I was wondering whether this is my scripts fault or is it server side. My guess is that it is somehow only uploading in ASCII or something. Anyone seen this before?
Pimpin like a pimp with an electrofied pimpin machine!
Rob Pengelly posted this at 19:03 — 2nd May 2000.
They have: 850 posts
Joined: Jul 1999
It sounds like the script is uploading the files in ASCII rather than Binary. I have never written a file upload script, so I an not certain how this is done sorry.
------------------
Personal Site
http://www.wiredstart.com : The Technology Start Page
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
Jonathan Michaelson posted this at 21:49 — 2nd May 2000.
They have: 10 posts
Joined: May 2000
Hello,
I've written upload scripts for our products. It's important that after you've opend your file for output that you ensure that the data is in binmode in this manner:
Regards,
Jonathan Michaelson
Way to the Web Ltd
Commercial CGI Scripting
http://www.waytotheweb.com
Suzanne posted this at 06:14 — 3rd May 2000.
She has: 5,507 posts
Joined: Feb 2000
Perl has to be uploaded in ASCII, whereas images have to be uploaded in Binary.
fyi,
Suzanne
------------------
Zero Cattle
Suzanne
Tables DeMystified
Ken Elliott posted this at 18:52 — 3rd May 2000.
They have: 358 posts
Joined: Jun 1999
That was the answer that I was searching for..thanks alot. I am sure that was the problem.
VulKen
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.