Click here to Skip to main content
16,004,678 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i want to save data which is uploaded. i.e i use file upload control.
is this is possible to direcly save uploaded file into database?how?what can i do for that?

please help me
Posted

I just answered a similar question today.

Look at this.
which way is best to store image in sql server database[^]
 
Share this answer
 
It is better to store the file path in database and store the file in one temporary folder in server which is efficient...

You can save uploaded file into DB.
 
Share this answer
 
You can't directly save it AFAIK, but it isn't too difficult: set up an Image field in your database, and the file upload control has a FileBytes property[^] you can directly write in via a parametrized query.
 
Share this answer
 

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