This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes file upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "file upload" Watch "file upload" New topic
Author

file upload

Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
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


Sharing is learning
Shubhrajit Chatterjee
Ranch Hand

Joined: Aug 23, 2001
Posts: 356
Use multipart requests for file upload.


Shubhrajit
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
use Oreilly classes or JSPSmartUpload. Remember that multipart forms are handled completely different. This is the reason you use these classes.
cheers


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
Thank for the info.
 
Consider Paul's rocket mass heater.
 
subject: file upload
 
Similar Threads
Locking/Unlocking, -- Am I Done Or I Don't Understand Requirements?
Transferring files over the network: is this possible?
access file dsn on server from a client
storing the responseText into a file
File Permission error while calling java Stored Procedure