• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

File upload feature

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic