I need to convert an image url (wordpress avatar) to a base_64 encode data using a wordpress function . I have a shortcode that has the image url for all wordpress users...
For example... [user_meta_avatar_pic] ; which will show an image like below..
I need [user_meta_avatar_pic] shortcode to be converted to a base64_encode data
Base64_encode for image above = aHR0cHM6Ly91cGxvYWQud2lraW1lZGlhLm9yZy93aWtpcGVkaWEvY29tbW9ucy83Lzc5LzIwMTAtYnJvd24tYmVhci5qcGc=
I need this base64_encode url for a services I am using with a SAAS imaging product.