Forum Discussion
3 Replies
- alchemizContributor III
Hi Munish,
Good day, what I will do is use a mapper (change input/output view to binary) that will receive the binary from the multi-reader from this mapper it will also update the binary header property content-location which you can use in the file writer
You can also use your pipeline, in the JSON formatter add a binary header property content-location
e.g.
then in the file writer you can then use the binary header property content-location
Thanks,
EmEm - alchemizContributor III
BTW, the filename that you will assign needs to be unique for each streaming document otherwise it will be overwritten by the next streaming document and you will end up just a single file (the last document file to stream)
for unit testing, probably you can use Math.randomUUID() as Date.now formatted to milliseconds sometimes overlaps and might cause duplicate filenames
- munishNew Contributor
Thanks for response. question was it was not working with multiple files trasfer/copy, I got it worked, there is a property need to enable in json formatter snap that default is false.
thanks