Ask Your Question

Revision history [back]

How do I read a whole file line-by-line in a Jython processor

I want to read whole file content in a Jython processor. I've tried this, but it's not working:

input_stream = record.value['fileRef'].getInputStream()
[x for x in input_stream.read()]