Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

file upload

 
Arun Boraiah
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In my project I need to read a data from text file sent from the file at the client side and update database.
Problem I am facing is.
1. Should I store the file temporally in the server? (i.e., until it is updated to the database).
2. How to get the file from client to server.
Please give your valuable suggestion at the earliest.
Thanks in advance.
-arun
 
Shubhrajit Chatterjee
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use multipart requests for file upload.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use Oreilly classes or JSPSmartUpload. Remember that multipart forms are handled completely different. This is the reason you use these classes.
cheers
 
Arun Boraiah
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank for the info.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic