What's the best way to display an image from a sql server database in asp.net?

前端 未结 4 1501
死守一世寂寞
死守一世寂寞 2020-12-02 01:05

I have a sql server database that returns byte for the image. If I use the tableadapter wizard and set it to my stored procedure and preview data, it pulls back an image.

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 01:35

    The sample code you added is good but you should move it to a .ashx file which is meant for such things.

提交回复
热议问题