且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用Java编写新的Blob

更新时间:2023-12-04 14:02:16

java.sql.Blob是接口而不是类,因此不能存在构造函数.但是您可以实例化实现类SerialBlob,该类允许您从字节数组构造blob.

java.sql.Blob is an interface and not a class, thus no constructor can exist. But you can instantiate the implementing class SerialBlob which allows you to construct a blob from a byte array.