December 1999
Intermediate to advanced
816 pages
20h 27m
English
public abstract interface Blob
This interface provides the method definition for a Blob. This is the Java version of the SQL data type Blob, which maps a binary large object to a column in a relational table.
Blobs can be useful in Java when you're working with a relational table to store an entire object. A Blob in Java differs from most SQL data types in that it stores a pointer to the data, rather than the data itself, in the column. The Blob is only valid during the transaction that created it. You can access a method through getBlob() and setBlob() in ResultSet, PreparedStatement, and CallableStatement.
InputStream getBinaryStream() byte[] getBytes(long pos, int length) long length() ...
Read now
Unlock full access