I’m curious what’s the difference between using stream vs bytes. One thing I don’t like about stream is that if you forgot to close the stream, the file cannot be deleted manually without bouncing the Integration Server. So, does stream only makes sense when you’re working with large file?
stream allows you to process large content with little memory footprint.
If you only handle small files/docs, you can use bytes.
Thanks tongwang for confirming my assumption. However, should best practice to use stream instead of bytes in case the client accidentally send you a large file by mistake? Again, I hate to use stream because you have to go the extra step to make sure the stream io gets close. Otherwise, you cannot delete the file unless the IS gets bounce.
Yes as tongwang said streams deal with larget payloads and it’s always safe to use streams and close the io (standard practice) and dealing with smaller file chunks then bytes would suffix.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.