Hi,
I am a newbie in php and I was wondering if anybody has a clue about the following.
I have an image and I am using base64_encode
$img="test.png";
$fd = fopen (, 'rb');
$size=filesize ($img);
$cont = fread ($fd, $size);
fclose ($fd);
$encimg = base64_encode($cont);
Then I want to decode the string "$encimg" in order to recreate the original image and save it as "test1.png".
Thanks in advance!