How to decode a base64 image to a file server side

Hi.

Take a look at this image to base64 custom module I created. You can probably use some library like this for your requirement to create image from base64.