# JPEG Error #2124: Loaded file is an unknown type

**URL:** <https://forum.kirupa.com/t/jpeg-error-2124-loaded-file-is-an-unknown-type/264617>\
**Category:** Uncategorized\
**Created:** [June 27, 2008, 7:42pm UTC](https://forum.kirupa.com/t/jpeg-error-2124-loaded-file-is-an-unknown-type/264617 "2008-06-27T19:42:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jorisx](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jorisx](https://forum.kirupa.com/u/jorisx)\
**Post date:** [June 27, 2008, 7:42pm UTC](https://forum.kirupa.com/t/jpeg-error-2124-loaded-file-is-an-unknown-type/264617/1 "2008-06-27T19:42:54Z")

</div>

I’m trying to load images from [discogs.com](http://discogs.com)  
but there are strange errors

These 2 urls are giving errors…  
[http://www.discogs.com/image/R-150-28301-1198848470.jpeg](http://www.discogs.com/image/R-150-28301-1198848470.jpeg)  
[http://www.discogs.com/image/L-150-283-001.jpg](http://www.discogs.com/image/L-150-283-001.jpg)  
ActionScript Code:

```auto

//var imageURLRequest:URLRequest = new URLRequest("http://www.discogs.com/image/R-150-28301-1198848470.jpeg"); 
var imageURLRequest:URLRequest = new URLRequest("http://www.discogs.com/image/L-150-283-001.jpg"); 
var myImageLoader:Loader = new Loader(); 
myImageLoader.load(imageURLRequest); 

myImageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded); 
function imageLoaded(e:Event):void { 
   var myBitmapData:BitmapData = new BitmapData(myImageLoader.width, myImageLoader.height); 
   myBitmapData.draw(myImageLoader); 
   var myBitmap:Bitmap = new Bitmap; 
   myBitmap.bitmapData = myBitmapData; 
   addChild(myBitmap); 
}

```

is this because I can’t read from that server ?? I can open the images in the browser…

---

<div class="post-metadata">

**Author:** ![jorisx](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jorisx](https://forum.kirupa.com/u/jorisx)\
**Post date:** [June 27, 2008, 8:06pm UTC](https://forum.kirupa.com/t/jpeg-error-2124-loaded-file-is-an-unknown-type/264617/2 "2008-06-27T20:06:12Z")

</div>

Changing the url to an other server like amazone works …  
 ![](http://forum.kirupa.com/uploads/kirupa/7000/2de7db6ab3f96690.jpg)

how can this be?

---

<div class="post-metadata">

**Author:** ![jorisx](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jorisx](https://forum.kirupa.com/u/jorisx)\
**Post date:** [June 28, 2008, 9:53am UTC](https://forum.kirupa.com/t/jpeg-error-2124-loaded-file-is-an-unknown-type/264617/3 "2008-06-28T09:53:58Z")

</div>

I see now that if you click on these links:  
[http://www.discogs.com/image/L-150-283-001.jpg](http://www.discogs.com/image/L-150-283-001.jpg)  
you see nothing

but when you copy and past them in the browser, the image shows up.  
Any ideas why this is ?
