Added the ability to send byte[] in addition to files

I believe I have not affected any of the current functionality, but please review the code and let me know.
I am using this library to communicate with a SWORD server, and needed the ability to send byte[].