Converting encoded data url to image | Community
Skip to main content
Katja_Keesom
Community Manager
November 3, 2021
Solved

Converting encoded data url to image

  • November 3, 2021
  • 1 reply
  • 2308 views

Hi all,

Has anyone come across a service that can convert a data url into an image and host it?

The use case: Via a webhook we receive a BASE64 encoded data url, which resolves into a graph that we would want to display in an email going out to the customer. This works for all email clients, except gmail (and of course any business domain hosted by Google).

Other than hosting the graph on a landing page rather than in the email, I see no other solution to make it work for all email clients than to convert the data url to an actual image url, but Marketo itself does not have that ability.

Has anyone seen a solution that can do this conversion?

Thanks!

Best answer by SanfordWhiteman

Cloudinary natively supports posting Base64-encoded files in addition to binary streams. You could in theory post (using another webhook) to Cloudinary, using an unauthenticated request to not have generate an auth token, and then map the generated URL back to the lead.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
November 3, 2021

Cloudinary natively supports posting Base64-encoded files in addition to binary streams. You could in theory post (using another webhook) to Cloudinary, using an unauthenticated request to not have generate an auth token, and then map the generated URL back to the lead.

Katja_Keesom
Community Manager
November 3, 2021

Thanks as always @sanfordwhiteman !