Save arraybuffer to base64 encoded json string