• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can anybody answer this question ?

 
Sneha Latha
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q.) I have a file of very very large file size at client side, and I have a JSP page. Using this JSP page, if I want to send the file to a servlet (this servlet will store it somewhere), what is the best method to do it ?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:
UseAMeaningfulSubjectLine

On less friendly sites you would often get the following answer to your question:
NO
and nothing else.

Again, welcome to JavaRanch and good luck with your question.
-Ben
[ June 21, 2007: Message edited by: Ben Souther ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "Using this JSP page, if I want to send the file to a servlet...?"?

Do you mean that you want the user to be able to upload file from their browser to the server?
 
Faisal Ahmed Siddiqui
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think sneha..
you are trying to know the best practise to upload a file.
well i don't know the business/use case.. but..
there are 2 solutions
either
you don't allow user to upload large files specified in UI like
in display.
or
there is a case user can upload without caring the size.
then do you want to have some resume sort of functionality
if yes..
then case will be more complicated.
and again actual situations need to be known if you
can keep the file and session then you the size after
reaching you should start persisting..and
if no..
then what are you waiting for..
use Apache File Upload Library. and leave it to user...
i know this answer is not like silver bullet
will solve your all problem..but what i perceived
i drawn on board..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!