Android Question Large download from php site

Discussion in 'Android Questions' started by kohle, Apr 6, 2015.

  1. kohle

    kohle Active Member Licensed User

    Hi,
    I download from a php script data.
    When its much data

    In
    Sub JobDone (job As HttpJob)

    Res = job.GetString

    returns empty string.


    How I can download "type of streaming" for large data download.


    rgs
    Kohle
     
  2. KMatle

    KMatle Expert Licensed User

    How large and what kind of data is it? Did you take a look to the logs (b4a & php timeout?)
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    HttpUtils2 can handle files of any size.
     
  4. kohle

    kohle Active Member Licensed User

    Hi, I will describe a little better what I am doing :

    I use download2 to get a list of coordinates, like : get_coord.php?track=TRACK2015-04-08T12:08:03
    It returns with echo (in a loop) a list of coordinates, like
    lati;longi#lati2;long2#lati3;longi3#.............and so on.

    Size : 8134 bytes
    Res = job.GetString
    seems empty.

    (It works with a small return , 2100 bytes)

    So 8k is not much, what is wrong.
     
  5. DonManfred

    DonManfred Expert Licensed User

    your code probably. But without seeing it completely we just can guess what the problem is

    Can you show the url from which you download the data? Maybe per pm if it is not an open url
     
    Last edited: Apr 7, 2015
  6. kohle

    kohle Active Member Licensed User

  7. DonManfred

    DonManfred Expert Licensed User

    Is that correct that the php will return all entries in ONE outputline?
    Did you have control over the php-file?
    maybe you want to show the php-code of this file (without databasecredentials if they are inside the php... Put XXX there

    PS: Vielleicht sollten wir einfach im deutschen forumsteil weiterreden. kimpublisher.com scheint ja ne deutsche Firma zu sein ;) In deutsch könnte es einfacher sein.
     
  8. kohle

    kohle Active Member Licensed User

    Ich habe den Fehler gefunden. So etwas blödes. Dumm Dumm, arrrrr

    (Find the error)
    In a spinner view I load all Tracknames via php script.

    So only the first trackname, here TRACKX has in front a space, coming from the php script.
    So in the next Job where I get the trackpoints he looks for " TRACKX" insteed of "TRACKX"
    and dont find nothing returns an empty result.

    Sorry .... Danke trotzdem. Thanks a lot.
     
    DonManfred likes this.
  9. DonManfred

    DonManfred Expert Licensed User

    Well done ;)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice