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 PostI thought that pulling images from a database was quite an expensive operation. Why not store the file path in the database and then just set the imageurl parameter of the <asp:image> tag to the path you read out of the database. This would be eaiser and would not require …
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.