- Home /
How to Upload a video from Android/iOS to a server without using WWW ?
Hi everybody !
I need to upload some videos from Android/iOS to a server but as those videos could probably be heavy in term of size (> 100mb), it is pretty hard to use the WWW object from Unity to achieve this.
Is there another way to do this ?
Thank you in advance for your answers !
Answer by Symbolizer · Oct 21, 2015 at 12:00 PM
By doing more research I've finally found a solution to this problem.
I've used a BinaryReader object to read the video by chunks, everytime a chunk is read, I upload it to the server with a WWW request (it's not crashing the application because the chunk size is lower than 10mo).
Once every chunks are uploaded, the side server code is merging all of them into one single video file and it's working perfectly !
if some of you need a code example just give me a sign :) !
Hello Symbolizer,
I am making a small app which accompanies a website that allows for asking a question. Right now I'm successfully recording and playing back audio on IOS, but I am struggling with uploading the clip via WWW. Your posts here look very promising and I would be very grateful if you could be so kind as to share the code you used. Whereas you were dealing with size issues I think I will be alright as the max recording length is currently 10 seconds. I have web hosting/FTP, is that what you used? If you don't feel comfortable sharing all your code then a few pointers would be much appreciated.
Thank you!
Hello Symbolizer,
Is it possible that you share your code example to me?
I kinda doing the same thing.
Hello Symbolizer, I have a same problem. I want to upload a video in android phone to a web server. Could you share your code example to me? thank you!
Hello Symbolizer, can you pls share your code?? Thank you in advance
Answer by MHeru_Art07 · Apr 24, 2019 at 06:19 PM
Hallo @Symbolizer, can you explain more to me about your method and code? Thank you