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 JSF and the fly likes File upload feature 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 » JSF
Bookmark "File upload feature" Watch "File upload feature" New topic
Author

File upload feature

Anks Gupta
Greenhorn

Joined: Mar 27, 2007
Posts: 21
Hi,

I need to incorporate file upload feature in my project which uses JSF, Web services, Apache axis, XML Beans and others.

I have currently a very small idea how to incorporate this feature and while searching on net i came to know about tomahawk inputFileUpload tag which can be used for file uploading.

I would like to know about approach to design this feature.

What are the various approach to upload a file?
Currently I am aware of
1) storing the uploaded file on server harddisk in some directory
2) storing file in DB using blob.

Is there any other better approach apart from these two?

Can somebody tell me pros and cons of these 2 approaches in terms of:

1) Maintainibility
2) Security
3) Usability
4) Ease of development

Any other comments are welcome.

Also once uploaded, can files be automatically deleted from server HardDisk or DB with batchwork or something...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File upload feature
 
Similar Threads
Excel-format report
Uploading an Image File
Unable to view uploaded files in Tomcat till server is refreshed
JSP and XML
Passing data between pages/requests - Best practice