setStream() expects parameter stream to be readable stream resource