In the blog post about using base64_encode for encoding an image , I talked about how to encode the image using base64 encode method of php.
In this post let us look at base 64 decoding function.
If you want to send an image using Ajax or from any other system, one of the ways is first encoding the image in base 64 mime type. This encoding can be done in any language ( php, javascript or java ) but it should result in the same string.
The data you would receive would start with