• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Uploading and downloading files

 
Cherry Mathew
Ranch Hand
Posts: 159
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I got some questions
Upload - when im doing the uplaod of a file from the client, how will i get the size of the file. Im using ServletInputstream to read the file. And its available() method returns 0.
Download a file- Do we have any method to know whether a file which is requested by the client got downloaded fully or not.
I want the status of the download.
Thanks in advance
Siju
 
Cherry Mathew
Ranch Hand
Posts: 159
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somebody help me
 
Sunetra Saha
Ranch Hand
Posts: 77
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We use Jsp smart upload which has got a free downloadable version and has all the features that you want. Why not try that?
 
Dmitriy Pavlyuk
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may use the OReilly MultipartRequest class for working with uploading file. Or send me email and i send you my version of this class.
 
Cherry Mathew
Ranch Hand
Posts: 159
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank u all
My problem is not the upload part but keeping track of that.
Dimitry please send me u r version of the program
My id is kher_m@yahoo.com
Thanks again
Cherry
 
Jack Wiesenthaler
Ranch Hand
Posts: 75
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not quite sure what you want to do exactly but I'm assuming you want to monitor file upload progress.
You can read the Content-length and set a session variable that stores the progress of bytes read vs Content-length.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic