Hi there,
I want users to upload pictures into the webplayer, which is not possible directly. So I upload the picture to a server and let the webplayer know the url, which can then download the picture again. I want to support jpg, png and gif. First to formats are no problem, but with WWW.texture you can’t access textures in gif format. I didn’t find a solution in the forums - I have searched for it. I don’t need the gif to be animated, I don’t need the webplayer to go on while it is downloading, so native C# solutions are fine, but I only fount this:
WebClient client = new WebClient();
client.DownloadFile(@"http://www.facebook.com/superhappyimage.gif",@"C:\image.gif");
Here you can store the file on the disk. Not useable in the webplayer. Is there another way? Or can the WWW class be used to download the bytes of the gif? And if so, how do I convert them into a Texture2D?
Thanks for any help.