1. Taro L. Saito
  2. sqlite-jdbc
  3. Issues
Issue #56 resolved

Implemtent getBinaryStream() in RS.java

created an issue

Hello, here are the methods that I added to RS.java to make it work nice for me. Please apply them to sqlite-jdbc. These methods are needed so that Infinispan can use sqlite with xerial jdbc driver as a cache store. I am guessing other jvm based frameworks would also expect them to be present.

import java.io.InputStream;
import java.io.ByteArrayInputStream;

    public InputStream getBinaryStream(int col) throws SQLException {
        return new ByteArrayInputStream(getBytes(col));

    public InputStream getBinaryStream(String col) throws SQLException {
        return getBinaryStream(findColumn(col));