Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to unpack/de-merge a file in NiFi that was previously merged in "Binary Concatenation" format

avatar
Expert Contributor

Hi All,

I'm trying to unpack/de-merge merged text files that were merged earlier using the "Binary Concatenation" format; in the UnpackContent processor's "Packaging Format" property, there is no "Binary Concatenation" format available; by the way we're on NiFi 1.0.1;

Is there a workaround ?

Thanks.

1 ACCEPTED SOLUTION

avatar
Master Guru

Since binary concatenation is just writing chucks of raw bytes one after another, there is no real format that can be understood to undo it. There would be no way for another processor to read those bytes and know where it was merged together.

If you use a demarcator when merging, then you can use that to unmerge by using SplitContent or SplitText.

View solution in original post

2 REPLIES 2

avatar
Master Guru

Since binary concatenation is just writing chucks of raw bytes one after another, there is no real format that can be understood to undo it. There would be no way for another processor to read those bytes and know where it was merged together.

If you use a demarcator when merging, then you can use that to unmerge by using SplitContent or SplitText.

avatar
Expert Contributor

@Bryan Bende thank you, I'm trying with SplitContent, initial results are encouraging.