How do I create a string record with the contents of a wholefile?
I'm using a Jython processor to read a plain text file from SFTP location and generate a record with the content of that file. So:
input_stream = record.value['fileRef'].getInputStream()
Now, should I call input_stream.read()
until EOF
and assign the result to record.value
?