Logo Search packages:      
Sourcecode: mysql-connector-java version File versions

java.io.InputStream com::mysql::jdbc::BlobFromLocator::getBinaryStream (  )  throws SQLException [inline]

Retrieves the BLOB designated by this Blob instance as a stream.

Returns:
this BLOB represented as a binary stream of bytes.
Exceptions:
SQLException if a database error occurs

Definition at line 112 of file BlobFromLocator.java.

References getBytes(), and length().

                                                                     {
        return new ByteArrayInputStream(getBytes(1L, (int) length()));
    }


Generated by  Doxygen 1.6.0   Back to index