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?