I want to save a pdf and mp3 file(s) to a SQL Server database and be able to retrieve from it.
I’m still starting out with LINQ and don’t master it yet.
I want to save a pdf and mp3 file(s) to a SQL Server database
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To start off with your going to have a binary field in your database to save the file to.
Are you using LinqToSql, EntityToSql, or? Need some more information…
But once you get an object with a []byte to save the file to then it just a matter of making the appropriate Save() call… but with having some more information it hard to say.
Did you google tutorials?
Here is one that I found: Uploading Binary files or Images using LINQ to SQL
Has example code and sql to generate dummy tables…