Image delivery

Go to Home page

HiUsually you deliver an image with code that looks like this <img src="pics/box100.GIF" width="100" height="100" alt="Hi">

This code makes the browser call the graphic file.

Hi But you may wish to deliver the image code inside the delivered file without the browser calling the graphic file. And that may be because an image from a non secure area wants to be in a secure area and you do not want to see the "warning" notices. In that case you could use this code.

<img src="data:image/gif;base64,<?php echo base64_encode(file_get_contents('pics/box100.GIF')) ?>" width="100" height="100" alt="Hi">

Other reasons to use Base64 and image files
Go here to read a good article on this issue