I want to get a 3gp file (can it be treated as binary file?? ) from the remote server to a local machine. As per my understanding, it can be done in the steps as below:
1. open a URL connection to remote server
2. read the file in a byte array
3. write it to another file
(assuming that the mp4/3gp file can be treated like a zip file)
Can you please advise how can we read it in a byte array and write it to another file?
Agree with what you are saying. But based on your experience/expertise, would you please advise as why is not able to read the 3gp file at all? why for the zip files it reads 52 bytes only? It works well with the text files. All the files are stored in the same location and the files are all OK.
Can it be related to the download permissions? Is it possible that it may be configured on the webserver (somewhere) so as not to give access to 3gp/zip files ??(and may be thats why I can't open it using the browser as well ??)