use iOS7 NSData base64 encoding