Streaming from Oracle bfiles. The right way?
Today I faced the task to stream a PDF-Document from a bfile stored in an Oracle database. So I wrote the following code to get a stream supplying the file from bfile and writing it to an outputstream. final String sql = …; BFILE bfile = null; Connection con = null; Statement stmt = null; […]