i having a upload control from which i will select files.
on insert button click i need to insert these upload files into database
on retrieve button click i should retrieve the files
thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Santhosh Kumar JayaramanPosted Jul 14, 2012, 7:21 AM
Please find the attached project. Here is the my table script.
create table uploadtest
(
id int primary key,
filename varchar(500),
filecontent varbinary(max)
)
For demo purposes i have set to upload and download one file only.
Also i have used Entity framework, if you are using stored procedures, create a class with the above columns as properties and set the values or directly pass the stored proc content to filename and file content
Please dont forget to mark my answer as accepted if it works.