Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create a system that can upload file(.txt, .doc, .pdf and so on)...
Posted

You have two options

1 - save them as a blob/image/whatever your chosen DB calls a stream of bytes
2 - store the paths to the files ,and store the files in your file system

Option 2 can be a lot faster b/c of the overhead of a DB full of doc, pdf, etc files.
 
Share this answer
 
Comments
[no name] 31-May-14 0:23am    
Whats blob??
MSIL
You can refer to http://cit3.cdn.swin.edu.au/utilities/upload/File_Upload_Using_Java.html
It may help you.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900