Used base64 to transfer data rather than binary string