<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged base64</title>
<link>https://overflow.efficy.io/?qa=tag/base64</link>
<description>Powered by Question2Answer</description>
<item>
<title>Is there a way to base64 encode a database.OpenUrl() result ?</title>
<link>https://overflow.efficy.io/?qa=2661/is-there-a-way-to-base64-encode-a-database-openurl-result</link>
<description>&lt;p&gt;Hi !&lt;/p&gt;

&lt;p&gt;Does anyone knows if there is a manner or possibility to get a http request's response encoded to a base64 string ? &lt;/p&gt;

&lt;p&gt;We have to display a captcha png (generated with captcha.net) on a guest page, but the problem is that we can see (in developer mode on browser) the ajax call done to captcha.net and this one contains credentials.&lt;/p&gt;

&lt;p&gt;I saw that there is the TMagickWand object to display images from disk, but does it work with web paths ?&lt;br&gt;
I tried something like &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;return &quot;data:image/png;base64,&quot; + database.openUrl(url, &quot;&quot;)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But it don't gives correct base64, maybe that we should use some kind of encoding on the database.openUrl(url, &quot;&quot;) result ? and then concatenate it with &quot;data:image/png;base64,&quot; ?&lt;/p&gt;

&lt;p&gt;Thank you in advance !&lt;/p&gt;

&lt;p&gt;Angel&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2661/is-there-a-way-to-base64-encode-a-database-openurl-result</guid>
<pubDate>Thu, 24 Aug 2017 20:46:38 +0000</pubDate>
</item>
</channel>
</rss>