I want to retrieve image from mysql database using servlet and show that image along with that user details in table

前端 未结 1 1408
小鲜肉
小鲜肉 2021-01-26 14:48

Everything is working well. When I delete Code for Retrieving image then I get user details in table and when I put the code to retrieve image along with the code of printing us

1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-26 15:33

    You could Base64-encode your image data and use the data URI in the src attribute of an img tag, e.g.

0 讨论(0)
提交回复
热议问题