开发者

display an image

开发者 https://www.devze.com 2023-02-11 13:42 出处:网络
i 开发者_C百科want to display an image in asp page when page is loaded. the particular image is stored in database. in database the field\'s datatype is imageTo do this you would normally implement a

i 开发者_C百科want to display an image in asp page when page is loaded. the particular image is stored in database. in database the field's datatype is image


To do this you would normally implement a HttpHandler that reads the image from the database and writes it to the response stream.

Something like this, but you would read the image data from the database instead of from the file system: http://wiki.asp.net/page.aspx/687/http-handlers-to-handle-images/

Also, it is simple to find a solution if you google it: http://www.google.com/search?q=httphandler+asp.net+image+database

0

精彩评论

暂无评论...
验证码 换一张
取 消