# Loading images from .php

**URL:** <https://forum.kirupa.com/t/loading-images-from-php/100241>\
**Category:** Uncategorized\
**Created:** [January 27, 2004, 6:41am UTC](https://forum.kirupa.com/t/loading-images-from-php/100241 "2004-01-27T06:41:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepflash](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@deepflash](https://forum.kirupa.com/u/deepflash)\
**Post date:** [January 27, 2004, 6:41am UTC](https://forum.kirupa.com/t/loading-images-from-php/100241/1 "2004-01-27T06:41:07Z")

</div>

Hi!!!

I have to load images into the flash applet by giving the tag

\<img src=http://www.foo.com/bar.php?id=1\>

In the php file i have specified the MIME type as image/jpeg. The image is getting loaded in the internet browser. But when i give the same url in a img src tag of a textarea by enablling html, somehow it doesnt work. But I am able to load the image if the src is like

\<img src=http://www.foo.com/bar.jpg\>

Why am I facing this problem? Does flash decides the file type by its extension and not by its MIME type.

I am really stuck in this…!! Plz help

TIA,  
deeps
