peacemaker Expert Licensed User Longtime User Jul 23, 2012 #1 Hi, All Any solution how to download HTTP response, returning text and, say, APK-file as parts? ** Service (httputils2service) Create ** ** Service (httputils2service) Start ** JobName = GetConfig, Success = true --3e570504b9 Content-type: text/plain; charset=UTF-8 RESULT=OK RESULTMSG=OK --3e570504b9 ** Service (httputils2service) Destroy ** Click to expand...
Hi, All Any solution how to download HTTP response, returning text and, say, APK-file as parts? ** Service (httputils2service) Create ** ** Service (httputils2service) Start ** JobName = GetConfig, Success = true --3e570504b9 Content-type: text/plain; charset=UTF-8 RESULT=OK RESULTMSG=OK --3e570504b9 ** Service (httputils2service) Destroy ** Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Jul 23, 2012 #2 There is some code in the forum that builds such a request for uploads. You will need to write something similar that parses the response and builds the file. Upvote 0
There is some code in the forum that builds such a request for uploads. You will need to write something similar that parses the response and builds the file.
peacemaker Expert Licensed User Longtime User Jul 24, 2012 #3 Job.GetString Job.GetInputStream are possible. How to parse such response, if, for example, binary file part is very big (5-25 MB APK to be later installed)? I have to find boundary start and finish... TextReader and TextWriter loop? Last edited: Jul 24, 2012 Upvote 0
Job.GetString Job.GetInputStream are possible. How to parse such response, if, for example, binary file part is very big (5-25 MB APK to be later installed)? I have to find boundary start and finish... TextReader and TextWriter loop?
thedesolatesoul Expert Licensed User Longtime User Jul 24, 2012 #4 Open with an input stream and read the bytes till you hit the boundary. Then copy the remaining stream back to a file. Sent from my GT-I9000 using Tapatalk 2 Upvote 0
Open with an input stream and read the bytes till you hit the boundary. Then copy the remaining stream back to a file. Sent from my GT-I9000 using Tapatalk 2