Reputation: 464
Are there any public Web Service APIs that allow submission of an Image URL and return a Base64 encoded version of that image? Here's an example: http://software.hixie.ch/utilities/cgi/data/data
Two reasons I want this:
Upvotes: 0
Views: 1760
Reputation: 10379
http://www.greywyvern.com/code/php/binary2base64
http://webcodertools.com/imagetobase64converter
Upvotes: 0
Reputation: 360572
Without any security considerations, you can do this VERY trivially in php:
<?php
echo base64_encode(file_get_contents($_GET['url']));
Don't be scared of "server-side".
Upvotes: 3