Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st. We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here. Need help or have questions? Drop us a line at [email protected]
Created on 10-05-201805:51 PM - edited 08-17-201906:14 AM
Posting Images with Apache NiFi 1.7 and a Custom Processor
I have been using a shell script for this since Apache NiFi did not have a good way to natively post an image to HTTP servers su such as the model server for Apache MXNet.
So I wrote a quick and dirty processor that posts an image there and gathers the headers, result body, status text and status code and returns them to you as attributes.
In this example I am download images from picsum.photos free photo service.
To use this new processor, download to your lib directory and restart Apache NiFi, then you can add the PostImageProcessor.
Eclipse For Building My Processor
Configure the Post Image Processor with your URL, fieldname, imagename and image type.