• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: User email with an encoded base64 image

User email with an encoded base64 image 10 months 2 weeks ago #43510

Hi,

I generate an encoded base64 image that I store in a RSForms field named 'qrcode'. The image is created correctly and when I debug the {qrcode:value} contains the encoded base 64 image. I then want to show that image in the User email but it does not work.

What follows works fine (there is the qrcode variable after the $val):
$val = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWAQMAAAAGz+OhAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA0UlEQVRIic2WMRKFIAxEl7Gw/EfwKB4NjuZRPIKlBWM+Icgf/dQsaWRemp1sFgQa5UVrw4X5WPL55DEVtGwe05k+6TwTmRM5FtWXWxL5rOgbgqG0uAx1SMfby+7M9tm7+Lfj3dldOqt33nsz1afCUs5lX8OVVonGtD47oL5hDVUvhTnzLWUrtbz5xmKYpApbxVFZ1ieh6EP2jcV+K2xPFXjsmfPQyH5HpoLsLlZ9eVY0Vh4EZ9lyEXym/zTDMNtnLjPf/HXn/CSyss8PfQOxRn0B55lCRxKKc2MAAAAASUVORK5CYII=';

In the User email I have:
<img src="{qrcode:value}"> this does not work, it appears empty in the received email. Its like if the value is not replaced in this case

The ascii code shows well if I just show {qrcode:value} as a text field, without the <img src...> .

If I replace above {qrcode:value} by its value in the <img src="..."> and I see the image in the user email.

What is the problem with the <img src=...> instruction?

Thanks
Last Edit: 10 months 2 weeks ago by roland.bialobroda. Reason: $val['qrcode'] = 'data: ... does not appear in the message
The administrator has disabled public write access.

User email with an encoded base64 image 10 months 2 weeks ago #43514

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 745
  • Thank you received: 66
Hello,

As mentioned in the ticket you have submitted, if you are testing this with a Gmail account, then the issue is not caused by the implementation, but by the limitation from Gmail not accepting such images. You can easily test this by adding the same img tag in the component thank you message and see how this is displayed.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
The following user(s) said Thank You: roland.bialobroda
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!