A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Joined: Oct 13, 2005
Jun 22, 2007 02:51:00
I have a
web site where users can upload files to the server hosting the site.
These files can then be downloaded by other users.
I was wondering if anyone knows the best way to store the files on the file system?
For instance is it better to store them all in one directory or multiple directories?
Does anyone know if there are any articles which would explain the best way to store and retrieve these files.
Thanks for the help.
Joined: May 14, 2007
Jun 22, 2007 05:39:00
you can store it in database as blob ......but am not sure of the best practice
Joined: Sep 28, 2006
Jun 25, 2007 02:16:00
hi Patrick McDonogh
you can use struts formFile for file uploading
and you can use BufferedinputStream(for the file content) for downloading
that uploaded file content
Joined: Aug 10, 2006
Jun 25, 2007 11:16:00
Store it in the DB
I agree. Here's the link:
subject: Storing Files
Best way to archive files
storing .pdf files in jsp
Android update site
Monitoring a Directory
Serving files outside document root
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015