I have stored images in a oracle table within a BLOB column. I use to read and output an image and write data using JAVA. I would like to do the same (getting my image and distributing it) with python. I am using Flask framework and cx_Oracle.
I manage to get my BLOB content into my application but I am not sure how to generate an image from that.
I know that in Java i used :
OutputStream out = response.getOutputStream();
response.setContentType(doc.getContentType());
IOUtils.copy( new ByteArrayInputStream(doc.getContent()),out);
out.flush();
where doc.getContent() is my BLOB content.