Issue with sending a JPEG file between modules

I am able to send a .txt file between modules successfully.

But I am unable to send a JPEG file between modules. The bytes seem to get corrupt at random times during the transfer on the client module’s side.

Any suggestions how to resolve this?