The GIF is there on the hard disk, which is under control of my application. There is a button on click of which this file can be downloaded on the harddisk anywhere.
I am setting following properties
$fp = fopen($filename,"r");
header("Content-disposition: attachment; filename");
header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
with this the download dialog opens and GIF file gets downloaded. But when the GIF file is opened in browser then it is not seen.
When opened in browser, it shows a Broken Image. It is happening with all the GIF file.