How does blockchain technology handle the actual transaction data?
how are these files stored, encrypted and sent to B on the blockchain?


They aren't. Those files are not stored on the blockchain nor are they transmitted to B using the blockchain.


  Does blockchain technology handle the security of the actual digital merchandise?


It can, if you make one that does. Bitcoin's does not.