Loading Images

Is there a predefined way to load Textures from images in the following cases:


  1. binary data, extension unknown, memory stream (ByteArrayInputStream)
  2. arbitrary URL, extension unknown



    Thanks.

Loading a texture from just binary, without known extension, is not possible. (Unless you guess the extension based on the header, and then save it on disk)

For the 2nd thing, its possible using UrlLocator, it should guess automatically the extension based on the URL.

thanks

I hacked together a solution checking for headers and using a subtype of AssetLocator. +1 for the locator system. At first it may look a bit odd but it is very flexible.