Please find the attached project in the below path.
Here is the my table script.
create table uploadtest
id int primary key,
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.