Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How to store attachments in SQL Server database?
I want to create a web form for them to upload attachments. What's the VB code to do so? Either inserting the attachment in the database table or storing the file name and writing out the file is okay.
1 Answer
- 1 decade agoFavorite Answer
Actually this is how Microsoft stores documents in its collaboration platform, SharePoint. Microsoft stores a files bytes into a column of type Image.
So what you will need to do is ensure that your SQL table has an Image column, write code to read the bytes of the file, then insert the bytes into your SQL record. The web (Google, MSDN, etc) is overflowing with examples for doing all of these things using the .NET libraries.