Interestingly, inserting a shorter stream with 2 elements works, whereas a longer stream with 1mio elements causes an error Chunk length larger than remaining bytes.
To reproduce execute the JavaScript file below (replace host, port, user, password, schema):
If I try to write to a blob field from a simple readable stream, e.g.
stream.Readable.from([Buffer.from('0'), Buffer.from('1'), Buffer.from('2')])
the statement execution hangs indefinitely.
Interestingly, inserting a shorter stream with 2 elements works, whereas a longer stream with 1mio elements causes an error
Chunk length larger than remaining bytes
.To reproduce execute the JavaScript file below (replace
host
,port
,user
,password
,schema
):node test.js 2
node test.js 3
node test.js 1000000
test.js
: