Click to See Complete Forum and Search --> : Storing images into access database along with page per records


selicon.valley
August 12th, 2010, 05:42 PM
i m developing website using asp.net with microsoft access 2003
i have product details along with the images now i want to add this images into database but how i add this pictures what code is use if there are 100 products with 100 images i want to show 10 records per page i need also code of that

HanneSThEGreaT
August 17th, 2010, 04:09 AM
Have a look into BLOBs ( Binary Large Objects ) and ASP.NET.

Basically, you'd have to use a StreamReader to read the contents of each image into a byte array, then, store that ( in memory ), once that is done, you could use the Insert Into SQL statement to store that object into your table.