| Package | Description | 
|---|---|
| java.sql | Provides the API for accessing and processing data stored in a 
data source (usually a relational database) using the 
JavaTM programming language. | 
| javax.sql | Provides the API for server side data source access and processing from
the JavaTM programming language. | 
| javax.sql.rowset | Standard interfaces and base classes for JDBC  RowSetimplementations. | 
| javax.sql.rowset.serial | Provides utility classes to allow serializable mappings between SQL types
and data types in the Java programming language. | 
| Modifier and Type | Method and Description | 
|---|---|
| Blob | Connection. createBlob()Constructs an object that implements the  Blobinterface. | 
| Blob | CallableStatement. getBlob(int parameterIndex)Retrieves the value of the designated JDBC  BLOBparameter as aBlobobject in the Java programming language. | 
| Blob | ResultSet. getBlob(int columnIndex)Retrieves the value of the designated column in the current row
 of this  ResultSetobject as aBlobobject
 in the Java programming language. | 
| Blob | CallableStatement. getBlob(String parameterName)Retrieves the value of a JDBC  BLOBparameter as aBlobobject in the Java programming language. | 
| Blob | ResultSet. getBlob(String columnLabel)Retrieves the value of the designated column in the current row
 of this  ResultSetobject as aBlobobject
 in the Java programming language. | 
| Blob | SQLInput. readBlob()Reads an SQL  BLOBvalue from the stream and returns it as aBlobobject in the Java programming language. | 
| Modifier and Type | Method and Description | 
|---|---|
| long | Blob. position(Blob pattern,
        long start)Retrieves the byte position in the  BLOBvalue
 designated by thisBlobobject at whichpatternbegins. | 
| void | PreparedStatement. setBlob(int parameterIndex,
       Blob x)Sets the designated parameter to the given  java.sql.Blobobject. | 
| void | CallableStatement. setBlob(String parameterName,
       Blob x)Sets the designated parameter to the given  java.sql.Blobobject. | 
| void | ResultSet. updateBlob(int columnIndex,
          Blob x)Updates the designated column with a  java.sql.Blobvalue. | 
| void | ResultSet. updateBlob(String columnLabel,
          Blob x)Updates the designated column with a  java.sql.Blobvalue. | 
| void | SQLOutput. writeBlob(Blob x)Writes an SQL  BLOBvalue to the stream. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | RowSet. setBlob(int i,
       Blob x)Sets the designated parameter in this  RowSetobject's command
 with the givenBlobvalue. | 
| void | RowSet. setBlob(String parameterName,
       Blob x)Sets the designated parameter to the given  java.sql.Blobobject. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | BaseRowSet. setBlob(int parameterIndex,
       Blob x)Sets the designated parameter to the given  Blobobject in
 the Java programming language. | 
| void | BaseRowSet. setBlob(String parameterName,
       Blob x)Sets the designated parameter to the given  java.sql.Blobobject. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | SerialBlobA serialized mapping in the Java programming language of an SQL
  BLOBvalue. | 
| Modifier and Type | Method and Description | 
|---|---|
| Blob | SQLInputImpl. readBlob()Retrieves the  BLOBvalue at the head of thisSQLInputImplobject as aBlobobject
 in the Java programming language. | 
| Modifier and Type | Method and Description | 
|---|---|
| long | SerialBlob. position(Blob pattern,
        long start)Returns the position in this  SerialBlobobject where
 the givenBlobobject begins, starting the search at the
 specified position. | 
| void | SQLOutputImpl. writeBlob(Blob x)Writes a  Blobobject in the Java programming language
 to thisSQLOutputImplobject. | 
| Constructor and Description | 
|---|
| SerialBlob(Blob blob)Constructs a  SerialBlobobject that is a serialized
 version of the givenBlobobject. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.