Hi Guys,

Okay so i know how to upload a img to database as blob that is no problem.

I have a form that i use to upload products to my db i want to add a product picture to each product now but i don't know how to retrieve the img for the specific product, i have a product table where the product information is stored and i have a image table where i upload all images to so how do i achieve listing the product with the correct img?

You wanne upload IMG in database as bits right ?
it is not good idea to do it
have alote of problems later

just IMG in tabe of type string

and just put the path in it
like " /pictures/a.jpg

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.