Recent comments

Poll

Highest Users

UserPoints
shamali4560
Mujtaba1310
Billy650
maoo_o540
Moin_iyan360

Who's new

  • usman911
  • shshzaib
  • HafizSohaib
  • savitadhiya
  • i_feel_4u

Current weather

Lahore

night-clear
  • Clear sky
  • Temperature: 10 °C
  • Wind: Calm
  • Pressure: 1017 hPa
  • Rel. Humidity: 82%
  • Visibility: 2 kilometers
Reported on:
Tue, 01/06/2009 - 09:30

Adsense

PerfSpot

Help to upload file in JSP??

 

 

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???

 


ehsan's picture

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.

gemind's picture

  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.


 

DrEvil's picture

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........

abid's picture

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

Powered By SEO ignition: Internet Marketing Company