nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James McMahon <jsmcmah...@gmail.com>
Subject Reading flowfile in a stream callback
Date Thu, 02 Nov 2017 19:53:16 GMT
In python, I can use the requests library to post content something like
htis:

import requests
url="https://abc.test.org"
files={'file':open('/somedir/myfile.txt','rb')}
r = requests.post(url,files=files)

If I am in a python stream callback, how can I read the flowfile payload in
the same way that the open() reads its file from disk?

Mime
View raw message