There nothing magic in this process: an encrypted file is a binary one, that is a bunch of bytes you may add to the image file using steganography (provided it fits into the image), see, for instance:
"Steganography - Hiding messages in the Noise of a Picture"[
^]. On receiving the image, the binary file can be extracted and plain text obtained using the decryption function with the proper key.