Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 06, 2011 12:30 AM by Decker Dong - MSFT
0 Points
1 Post
Dec 04, 2011 01:55 PM|LINK
im working on my project that can produce printable worksheets.
i want to be able to add images/videos to a database.
PROCEDURE.
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
Thanks
Jan
All-Star
35986 Points
6550 Posts
Dec 04, 2011 11:29 PM|LINK
http://www.mikesdotnetting.com/Article/123/Storing-Files-and-Images-in-Access-with-ASP.NET http://www.mikesdotnetting.com/Article/78/AccessDataSource-SqlDataSource-and-connecting-to-Access-databases-in-ASP.NET
118619 Points
18779 Posts
Dec 06, 2011 12:30 AM|LINK
Hello jomarr:)
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。
Best reguards!
jomarrr
0 Points
1 Post
How to add image in ms access 2010 database using vb .net 2010
Dec 04, 2011 01:55 PM|LINK
im working on my project that can produce printable worksheets.
i want to be able to add images/videos to a database.
PROCEDURE.
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
Thanks
Jan
hans_v
All-Star
35986 Points
6550 Posts
Re: How to add image in ms access 2010 database using vb .net 2010
Dec 04, 2011 11:29 PM|LINK
http://www.mikesdotnetting.com/Article/123/Storing-Files-and-Images-in-Access-with-ASP.NET
http://www.mikesdotnetting.com/Article/78/AccessDataSource-SqlDataSource-and-connecting-to-Access-databases-in-ASP.NET
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: How to add image in ms access 2010 database using vb .net 2010
Dec 06, 2011 12:30 AM|LINK
Hello jomarr:)
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。
Best reguards!