How can I convert the data from the upload of image into base64?
How can I convert the data from the upload of image into base64?
The data I get from the image is something like this :
�PNG
IHDRjx ?g bKGD������� tIME � $ :� �IDATx���{�UU ǿs gx+(�HA?� ���
�ǧ���4�R�4 �4�|Pi d�35߄�J ,����fb��� bD q����u�s��}���}νw������s������{�v = � p p,P �
� 4 ��W��� O���l�Fp;�5�5m� ���#�{��ߕY գ�� �( �sY��������� �����8 �Ȉ^ � ΫC� ������ 8(�uK �� �ӭ �GYc�B�h� s�{�E��� } PȠ�� /j.�Ϡ���yE� 0 ؽH#��/e;�EE��tX
� ��; #+���}T� ��
� ��IQ=���� 8 � �,- � #�mo3 �� ��s�g�׀Y����� ������ N�}� dz[����0�o�� ��} �n�k� ȦX�E ����q ���
�T�?�g������ Y�-�.u�7WL@�� 8 ����:t �� qW�[ 4#���OU+jc' "�
� q \ �����s�2� ��J9 t� ��@ �m |�ZQÑ :,�2dι ���2\c���oX�� �(���,m�R��zE | x s ځֈ�44 ���)x��7��}V�C��, �Z\ � �2�VG:��pಘ�]�=��,ZIEND�B'�