Last post Dec 06, 2011 12:30 AM by Decker Dong - MSFT
Dec 04, 2011 01:55 PM|jomarrr|LINK
im working on my project that can produce printable worksheets.
i want to be able to add images/videos to a database.
ive created a ms access database named images_DB with images as a field name
while in vb .net i create 1 textbox where the URL (specific directory of the image i want to add) will appear
a button named 'Browse' for browsing the image i want to add. and another button named 'Save' for saving the
picture to the database
Hope someone can help me with the code
Dec 04, 2011 11:29 PM|hans_v|LINK
Dec 06, 2011 12:30 AM|Decker Dong - MSFT|LINK
Simply speaking，you should：
1）First you should put a fileuploader first。
2）Then you should use System.IO.ReadAllBytes to read the posted file into binaryformation。
3）In the end，you should use SqlCommand to update it。
Sample is just what hans_v's has suggested。