Let's see how we can actually use base64 by uploading an HTML canvas image to the server. This is my solution, using Paperclip.io_adapters.for(image) where image is base64 string. Encode Image To Base64 In Php - Delft Stack. To Encode and Decode Image Path in PHP, we use 3 main PHP inbuilt functions. By signing up, you agree to our Terms of Use and Privacy Policy. Base64 encoding tool supports loading the Base64 text File to transform to Image. Chrome 4+ Base64_encode method works in the same way as it does in other programming languages . Base64 represent binary data in an ASCII string format by translating it into a radix-64 representation.