Solved

upload text/binary file

Posted on 1998-10-30
11
192 Views
Last Modified: 2013-12-25
I'm writting a web application to upload both text and binary file from client machine to server machine using FORM.  The library that I using to do the actual upload is "CGI_Lite.pm" (perl).  Unfortunately, this library does not handle binary file correctly.  Is there any library out there that does the job?

Thanks

--
hdo
0
Comment
Question by:hdo120497
  • 3
  • 3
  • 2
  • +3
11 Comments
 

Author Comment

by:hdo120497
ID: 1829364
Edited text of question
0
 

Author Comment

by:hdo120497
ID: 1829365
Edited text of question
0
 
LVL 28

Expert Comment

by:sybe
ID: 1829366
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 1

Expert Comment

by:borup
ID: 1829367
Are you interested in perl scripts only? I have a solution in Java running as a servlet. If it has any interest leave your e-mail and I'll send it to you.

borup
0
 
LVL 1

Expert Comment

by:borup
ID: 1829368
BTW: It will need some adjustments to make what you want.
0
 
LVL 28

Expert Comment

by:sybe
ID: 1829369
hdo,
why did you reject my answer ? I use cgi-lib.pl for the purposes you mention without problems. You asked for a library that can do the job, and I gave you one. An explanation why you rejectd my answer seems in place.
0
 

Expert Comment

by:boney
ID: 1829370
Go to http://www.supamall.com/suparealtor/files/ and follow the "Mallbuilder" - see if that is what you want to do then get back to me...
0
 

Author Comment

by:hdo120497
ID: 1829371
your site "http://www.supamall.com/suparealtor/files/" doesn't
have anything to do with uploading a binary file.  I'm looking
for a perl library that can upload binary and text file...  The library "cgi-lib.pl" doesn't work for binary file.  

If any one know, please help me with this...

Thanks!

hdo
0
 
LVL 28

Expert Comment

by:sybe
ID: 1829372
hdo,

cgi-lib DOES binary file upload. I use it for that. I don't know why you think it does not. I use it for .doc, .pdf, .gif, .jpg files (to name some examples). Please read the documentation on their website again. I have not idea what purposes you have in mind which can't be done by cgi-lib.pl

file-upload is always binary (because you never know what format the file is).


0
 
LVL 19

Expert Comment

by:cheekycj
ID: 1829373
borup...
what solution do you have as a java servlet?  Is it somewhere online?

CJ
0
 

Accepted Solution

by:
aseem072898 earned 100 total points
ID: 1829374
Hi you have many to choose from;

visit
http://scriptsearch.internet.com/pages/l9c3c20.shtml

Hope this is an answer!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question