MODE-2103: Upload binary content outside of transaction.

This pull request uploads binary content outside of transaction.