• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

How do I FTP files form my html form using "input type=file" through jsp/servlet

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am using orilly MultipartRequest to upload files from cliemt to server.But it is very slow . Is there any way of FTPing files from client to server?.

Thanks
Saurabh
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No.

I've never seen a speed difference between using multipart uploads and uploading with a regular ftp client. You might just have a slow upload rate from your internet provider.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are different package are availble to upload file from client machine to server. if using jsp then refer jsp smartupload lib, if using servelt then try for apache.common under that some fileupload utility is availble.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The library you use doen't matter. They're all on the server.
The browser is what does the upload.
Your connection is going to be the biggest determining factor.
[ May 01, 2005: Message edited by: Ben Souther ]
 
saurabh shekhar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I feel ftp must be faster compared to http. I am using MultipartRequest to upload a 100MB file which is taking hours of time to upload. But if I use a FTP client(WS_FTP) to upload , it is just taking a few minutes. Do you know , how to use FTP from servlet/jsp ? Also do I need to have a FTP server if I am uploading through FTP ?

Thanks
Saurabh
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You would need an FTP server.
You would also need an FTP client because browsers do not allow webapps to access the local file system except via the <input type="file".. control.

I don't think there is an easy way to use FTP from a servlet app.
 
reply
    Bookmark Topic Watch Topic
  • New Topic