How user can upload the files?? like *.mp3 or *.rm in the database?? I m currently using JSP..give me idea how i can upload files through interface to our database???
saving some file ain't the matter of some Java API, the databases are meant to store informations only, if you think logically; can a file contain another file, simple NO. you can only store references of files into database like their name, size, relative path etc....
hope that answers the question
WaQaR Aziz
BITF03 - Alumini Director Software Development -- Pentasoft inc.
well in your problem there are more than one things.. firstly the big issue is that how to upload th file and trnafer from client to server side in jsp it is a very big issue as the java code is on server side and on client side v havfe only html code and using it we cannot transfer the file.... u can test it by writting file upload code in jsp using any stream like file etc and then run server on one machine and try to access the page from other pc page files wont b uploaded on server... so for that special handling has to b done i can preovide the code if u need........
You can save a file into a folder and save its path in database
AoA!
I agree with GEMIND, a file cannot be saved into a database.
But if you want to save files at your server side then you can make a folder that will store files for you.
And path of the file that you just saved can be placed into the database.
And then when you need to acces it get the path from database and use it.
And, for how to Upload (send) a file to the server side, you should checkout this link:
http://www.devsphere.com/mapping/docs/guide/upload.html
I hope it will be helpful, it uses java beans, but its easy.
AH.
saving some file ain't
saving some file ain't the matter of some Java API, the databases are meant to store informations only, if you think logically; can a file contain another file, simple NO. you can only store references of files into database like their name, size, relative path etc....
hope that answers the question
WaQaR Aziz
BITF03 - Alumini
Director Software Development -- Pentasoft inc.
File Upload
well in your problem there are more than one things.. firstly the big issue is that how to upload th file and trnafer from client to server side in jsp it is a very big issue as the java code is on server side and on client side v havfe only html code and using it we cannot transfer the file.... u can test it by writting file upload code in jsp using any stream like file etc and then run server on one machine and try to access the page from other pc page files wont b uploaded on server... so for that special handling has to b done i can preovide the code if u need........
you can make Strings or
you can make Strings or other type to save it in the data base you must look some API for this purpose
-ABid