오답노트
[NiFi] ModifyBytes - Content 없애기
gajy
2022. 9. 8. 13:43
728x90
multipart request를 다루면서 다양한 processor들을 거친 후 response를 내려줄 때 계속 업로드한 original file이 함께 응답되는 현상이 발생하였다.
invokeHTTP의 경우 content를 무시하는 property로 관리가 되지만, 여러 processor에 대응가능한 방법이 필요했다.
그래서 찾아낸 processor.
ModifyBytes
ModifyBytes
Start Offset0 BNumber of bytes removed at the beginning of the file.Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
nifi.apache.org
Remove All Content : Remove all content from the FlowFile superseding Start Offset and End Offset properties.
ModifyBytes processor를 추가하고, Remove All Content property를 true로 설정하여 해결하였다.
728x90