I made website for the computer shop,i have to display image & price of the components for that i made sql database(laptop.mdf) with columns(model_no as varchar(50),company as varchar(50),price as int,picture as image). image of component is stored in the picture column.i an already inserted image directly by writing sql query ,now i want to display that image on webpage in ASP.NET
jigarsangoi 0 Newbie Poster
Recommended Answers
Jump to PostYou have to create a
handler
through which you can insert blob (image) data into the current response.Please us show your code - Do provide evidence of having done some work yourself if posting questions from school or work assignments
Jump to Posthi
I was dealing with the same scenario and i found out storing image in the database is not the best option-takes more download time and still u'll write more code.
The best thing to do is store the images in a file directory in your project folder …
All 5 Replies
jigarsangoi 0 Newbie Poster
kvprajapati 1,826 Posting Genius Team Colleague
svilla 17 Junior Poster in Training
Sarama2030 0 Junior Poster in Training
Sarama2030 0 Junior Poster in Training
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.