iOS Question SQL Database is empty

Discussion in 'iOS Questions' started by Sasuke Sama, Dec 7, 2018.

  1. Sasuke Sama

    Sasuke Sama Member Licensed User

    Hi
    I Have sqllite database created with a b4j app then uploaded to an ftp server
    after that a b4a,b4j and b4i app downloads it from the server and use it
    on b4a and b4j it works fine but on b4i the db file get downloaded and the number and names of the cols are showing even the number of the rows it correct but it shows empty rows
    i tried to insert data from the b4i app to the downloaded db but again it shows as empty
    i tried other servers and stuff but still the same
    i reupladed the downloaded db file from the ios app to the server and downloaded it to the b4a and b4j apps and it works even the add data from the ios shows up
     
    Last edited: Dec 7, 2018
  2. Sasuke Sama

    Sasuke Sama Member Licensed User

    Ok so i changed the database name from db to zip ... Upload it and then name it back to db when downloading it back to the device and it works now
    Weird yes but it least it works
    Will report back later if i get anything new
    Sorry for posting alot :D
     
  3. Sasuke Sama

    Sasuke Sama Member Licensed User

    ok i thing i got it
    for some reason database created with android shows as blank on ios
    any idea why?
     
  4. klaus

    klaus Expert Licensed User

    Without seeing any code it's impossible to give concrete advices.
    This sounds very strange to me, how do you read the database in B4i?
    How do you know that the column names and the row number are correct ¨?
     
  5. Sasuke Sama

    Sasuke Sama Member Licensed User

    Ok its fixed now i removed the db from the file name and everything works now
    not sure why and i dont care im just happy that it works now
     
    Last edited: Dec 7, 2018
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