Now working using base64 encoding