- Home /
Download .unity3D file from server with WWW - zero length
Hi
We have an Unity iOS app that loads 3D models from a server.
Originally we were using the Mono WebClient - but that is causing issues with proxy servers.
I implemented a solution using TCPClient and NetworkStream - only to be informed that I needed the iOS Pro version. I merely have Unity Pro.
I then tried the WWW class - and that works fine for the likes of .png, .mp3 but .unity3d files come through with zero bytes.
There's no www.error - just zero length www.bytes.
It's not the file size to blame because bigger MP3 files have loaded successfully.
I tried swapping the content between two .mp3 and .unity3d files and the bogus .mp3 (with the model content) failed to load.
My question is: Is there some feature of the WWW class that actively bars the download of .unity3d files after inspecting their content?
Or else, how can I download .unity3d files with the WWW class?
Thanks in advance.
Answer by breeze-it · Nov 05, 2014 at 04:23 PM
I have got round this by obfuscating the file content using a XOR cipher on the server and again in the app! Very strange...
Your answer
Follow this Question
Related Questions
Wait for file download 1 Answer
where is the result of a www download stored? 1 Answer
How to download an image and stock it on the device in C# ? 0 Answers
Asset Bundle Download Crashing 0 Answers
Save Unfinished Download 0 Answers