Snap Setting for sending one CSV file via REST POST Snap

Hi

I need to know what snap setting do we need to configure to send one CSV file via REST Post snap, it would be great if you can share a screenshot or a sample pipeline that does that.
(file need not be picked up from sldb, but to be created from input JSON data and sent on the fly)

Thanks

@vaidyarm if you want to post a file, you have to save that file (most relevant option is sldb). Then use below setting and delete that file after processing.

Whatever option you might looking for , that can be post as http entity.


@Supratim,

we are trying to post the zip file(staged in sldb) using rest post , but not successful. The same zip file is posting through postman it is successful.

Can you guide us what are right configuration in rest post snap to post zip file as it is(invoking webservice-> stores zip file in sql server db blob column)
The zip file is created in sldb using the flow file reader->compression->filewriter

The below data adding to the zip file in target , expected one is not to add below information

-NpPpHQYDtTHWk9esbHreg29WnKx_bCYn
Content-Disposition: form-data; name=“file”; filename=“data.zip”
Content-Type: application/octet-stream; charset=UTF-8
Content-Transfer-Encoding: binary

@Supratim

Your solution had worked fine as long as we pick up files from SLDB to post via the rest post API,
it would be great if can have a way to directly send files using the above snap, without having to write first on SLDB.

Thanks
Rahul