I am trying to import data from a a local derby database into python using the jaydebeapi. I am running python 3.6 from PyCharmCE:
import jaydebeapi as jdbc
conn = jdbc.connect("org.apache.derby.jdbc.ClientDriver", "jdbc:derby://address:port/db_name", ["user", "pwd"], "path/to/derbyclient-10.14.2.jar")
curs = conn.cursor()
curs.execute("select ITEM from TABLENAME")
rec = curs.fetchone()[0]
curs.execute("select BLOB from TABLENAME")
rec = curs.fetchone()[0]
curs.close()
conn.close()
While everythong goes well for the first query, i am having troubles with the data blob. I receive the following runtime error:
Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
The blob data size is approx. 200kB. At runtime the rec variable is of type org.apache.derby.client.am.ClientBlob - found that a bit puzzling ...no idea if it contributes to the solution.
Thx in advance for any hints!