setting blob to null using PreparedStatement

前端 未结 1 569
既然无缘
既然无缘 2021-01-13 14:48

I am creating webapplication using JSF2.0 where in mysql, I am storing images using datatype as MEDIUMBLOB.

To insert values, I am using PreparedStateme

1条回答
  •  执笔经年
    2021-01-13 15:32

    What is going wrong these days? I get solution after I ask question :(

    psmnt.setNull(3, java.sql.Types.BLOB); did the trick.

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