I am facing a problem and I need to convert some image, which comes from back as url and convert to base64. For example, how this image url
https://cdn.pixabay.com/photo/2015/02/24/15/41/dog-647528__340.jpg
can be converted in the base64.
I know that there are image encoder web sites, like
https://www.base64-image.de/
but I need to do it dynamically in my code.