December 2002
Intermediate to advanced
1050 pages
24h 49m
English
The BlobWriter class is the utility class used by the BlobView servlet. This class contains the methods that perform the task of retrieving the BLOB column for viewing. Unlike some of the other utility classes, this class takes on the responsibility of establishing a connection to the database and creating the prepared statement to use in the database operation. The code for this class is shown in the next few sections.
The main class declaration for the BlobWriter class performs the imports we expect to access JNDI naming services and to use the JDBC API. For convenience, instance members are created for a JDBC Connection reference and for a PreparedStatement ...
Read now
Unlock full access