Send image from upload webpage to unity client.

I want to create a feature in my game where players can upload images on my web server and then have that image displayed in game as a texture. Is this possible?

I know PHP and AJAX so I can make the upload page and have the image saved on the Web server but how will I display the image as a texture in my Unity game?

To make a request use the WWW class: Unity - Scripting API: WWW

It’s usually a good idea to make the request in a coroutine. Once the request returns you can check for errors, and if everything worked you can get the texture generated by the data received using the WWW’s texture property: Unity - Scripting API: WWW.texture

You can then set that texture to a material using Material’s “SetTexture” method: Unity - Scripting API: Material.SetTexture