How to convert byte array to blob

前端 未结 1 446
无人及你
无人及你 2020-12-28 18:16

I want to fetch an image from database. For that I have created a byte array for an image, which is passed by a string, and now I want to convert that string into image form

1条回答
  •  生来不讨喜
    2020-12-28 18:34

    Blob blob = new javax.sql.rowset.serial.SerialBlob(bytes);
    

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