SOLVED

Converting encoded data url to image

Go to solution
Katja_Keesom
Level 10 - Community Advisor

Converting encoded data url to image

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!

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Converting encoded data url to image

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.

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Converting encoded data url to image

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
Level 10 - Community Advisor

Re: Converting encoded data url to image

Thanks as always @SanfordWhiteman !

Tags (1)