Last post Dec 27, 2017 03:15 AM by Fei Han - MSFT
Dec 06, 2017 08:52 AM|AFR|LINK
I am trying to store multiple images in asp.net web forms tables of products but it is not storing. Anyone who can help me with this?
Dec 07, 2017 05:51 AM|Eric Du|LINK
According to your description, you say can not store image to the database, please share your code with us to check? or you meet any error message, please share it with us!
Dec 07, 2017 07:10 AM|behomer|LINK
I used to have a site wrote by ASP and already store many image (product) for each page.
You should talk to the developer for this case.
Dec 27, 2017 03:15 AM|Fei Han - MSFT|LINK
According to your description, it seems that you’d like to store images in your database. If you want to save image as binary data into your database directly, you can read the image as Stream and then converts the Stream to Byte array using Binary Reader
and then save it to the database,
this article explained with an example how to save image as binary data into database, please refer to it.
Besides, if you want to store images path in the database,
this article with example would be helpful.