What is a Streaming mode in Python?

Can't deal with documentation for FireBird

I need to figure out how to insert binary blobs, but in the examples written about:
Materialized
Streamed

And then instead of reading the file write:
cur.execute("insert into blob_test values (?)", ('abcdef',))

How do I file squeeze in here?

Do:

output_file_name_read = open(output_file_name,'rb').read() 
currDst.execute("""UPDATE "REQUESTS" SET shape = {0} WHERE request_id = 2""" % output_file_name_read)


I get this error:

File "C:\work\App.py", line 70, in <module>
main()
 File "C:\work\App.py", line 67, in main
 SyncRequest(postconn, fireconn, 'POSTID', 'FIREID')
 File "C:\work\App.py", line 52, in SyncRequest
 currDst.execute("""UPDATE "REQUESTS" SET shape = {0} WHERE request_id = 2""" % output_file_name_read)
TypeError: not all arguments converted during string formatting</module>


I tried this:
currDst.execute("UPDATE REQUESTS SET shape = ? WHERE request_id = 2", (output_file_name_read))

TypeError: parameters must be list or tuple
July 9th 19 at 10:57
1 answer
July 9th 19 at 10:59
(output_file_name_read) is not a tuple
(output_file_name_read,) is a tuple

Find more questions by tags Python