views:

291

answers:

1

Is there a webservice available that will take a url of a file e.g. http://example.com/images/image.jpg and return a base64 encoded string of that file preferably in json format?

A: 

Where are you trying to use this from? Would something like this work?

curl http://example.com/images/image.jpg | base64

brianegge