Test attachment with base64 encode and url