WWW loading texture problem when built

Here is what happened.
I’ve tried 2 different methods of loading texture files via WWW.
One is via the web, another is via Asset folder.
They worked in the Editor, but didn’t worked on web player.

	//read texture either from web or asset folder
	var TextureLocation = "www.--myHomepageURL--/" + m_BookID +"/0.jpg";
	//var TextureLocation = "file://" + Application.dataPath + m_BookID +"/0.jpg";

var www = new WWW(TextureLocation);
	yield www;

//Won't get loaded if taking away LoadImageIntoTexture
	/*var tmp = new Texture2D(128,128);
	www.LoadImageIntoTexture(tmp);
cloneBook.renderer.material.mainTexture = tmp;*/

This is what I get in web player

1005-TextureBugs.png

when it should look like this

1006-TextureNormals.png

adjusting number on new Texture2D(x,x) didn’t help;

I’m not sure what is the cause of your problem, but try this:

var TextureLocation = "www.--myHomepageURL--/" + m_BookID +"/0.jpg";
var www = new WWW(TextureLocation);
yield www;
var tmp = new Texture2D(128, 128, TextureFormat.DXT1, false);
www.LoadImageIntoTexture(tmp);
cloneBook.renderer.material.SetTexture("_MainTex",tmp);