Texture Stream Loading

I noticed that the System.Drawing namespace isn’t in Unity. Without it, is there any way in Unity(C#) to load in an image file (jpeg/png) and get pixel data via a System.IO.Stream?

Note that I’m looking specifically for a System.IO.Stream solution, not a WWW or a Resource solution.

You mean something like this:

 public static Texture2D LoadTextureFromFile(string filename)
    {
        // "Empty" texture. Will be replaced by LoadImage
        Texture2D texture = new Texture2D(4, 4);

        FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read);
        byte[] imageData = new byte[fs.Length];
        fs.Read(imageData, 0, (int)fs.Length);
        texture.LoadImage(imageData);

        return texture;
    }

Exactly like that, thank you!