public SerialBlob (Blob blob) throws SerialException, SQLException

Constructs a SerialBlob object that is a serialized version of the given Blob object.

The new SerialBlob object is initialized with the data from the Blob object; therefore, the Blob object should have previously brought the SQL BLOB value's data over to the client from the database. Otherwise, the new SerialBlob object will contain no data.

Parameters:
blob    the Blob object from which this SerialBlob object is to be constructed; cannot be null.

Exceptions:
SerialException    if an error occurs during serialization
SQLException    if the Blob passed to this to this constructor is a null.

See also:
java.sql.Blob