<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Downloaded .sqlite  &amp;quot;file is encrypted or is not a database&amp;quot; in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloaded-sqlite-quot-file-is-encrypted-or-is-not-a-database/m-p/267562#M15728</link>
    <description>Dropbox just uploads/downloads whatever data it is given, and it doesn't do anything special for .sqlite files.&lt;BR /&gt;&lt;BR /&gt;That error message isn't coming from Dropbox itself, but it seems to indicate that the data isn't what was expected.&lt;BR /&gt;&lt;BR /&gt;Can you first check the file metadata (in response.0), e.g., to see if the file size is the expected value? That should help track if it the problem is with the upload or the download.</description>
    <pubDate>Mon, 05 Mar 2018 20:34:52 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-03-05T20:34:52Z</dc:date>
    <item>
      <title>Downloaded .sqlite  "file is encrypted or is not a database"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloaded-sqlite-quot-file-is-encrypted-or-is-not-a-database/m-p/267546#M15726</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to download a .sqlite File from my Dropbox.&lt;/P&gt;&lt;P&gt;So far this works and I save it to the documents directory.&lt;/P&gt;&lt;P&gt;I'm also able to establish a connection to the database but when I try to execute a query I get the error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;"file is encrypted or is not a database"&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;this is the same database I used before as a local database in my app (I added the file manually to the project) and there it worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So the file can't be encrypted.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also the query statements stayed the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have to add some sort of description to the file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is my code for downloading the file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;  let fileManager = FileManager.default
            let directoryURL = fileManager.urls(for: .documentDirectory, in: .userDomainMask)[0]
            let destURL = directoryURL.appendingPathComponent("myTestFile.sqlite")
            let destination: (URL, HTTPURLResponse) -&amp;gt; URL = { temporaryURL, response in
                return destURL
            }
                client.files.download(path: path, overwrite: true, destination: destination)
                    .response { response, error in
                        if let response = response {
                            print(response)
                            
                            self.downloadFinished(url: response.1)
                            
                        } else if let error = error {
                            print(error)
                        }
                        
                     
                    }
                    .progress { progressData in
                        print(progressData)
                }
         
        }&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:14:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloaded-sqlite-quot-file-is-encrypted-or-is-not-a-database/m-p/267546#M15726</guid>
      <dc:creator>Benne</dc:creator>
      <dc:date>2019-05-29T09:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Downloaded .sqlite  "file is encrypted or is not a database"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloaded-sqlite-quot-file-is-encrypted-or-is-not-a-database/m-p/267562#M15728</link>
      <description>Dropbox just uploads/downloads whatever data it is given, and it doesn't do anything special for .sqlite files.&lt;BR /&gt;&lt;BR /&gt;That error message isn't coming from Dropbox itself, but it seems to indicate that the data isn't what was expected.&lt;BR /&gt;&lt;BR /&gt;Can you first check the file metadata (in response.0), e.g., to see if the file size is the expected value? That should help track if it the problem is with the upload or the download.</description>
      <pubDate>Mon, 05 Mar 2018 20:34:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloaded-sqlite-quot-file-is-encrypted-or-is-not-a-database/m-p/267562#M15728</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-03-05T20:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Downloaded .sqlite  "file is encrypted or is not a database"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloaded-sqlite-quot-file-is-encrypted-or-is-not-a-database/m-p/267563#M15729</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The datasize is exactly the same (920Byte)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it right that when the response arrives the download is completed?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 20:39:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloaded-sqlite-quot-file-is-encrypted-or-is-not-a-database/m-p/267563#M15729</guid>
      <dc:creator>Benne</dc:creator>
      <dc:date>2018-03-05T20:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Downloaded .sqlite  "file is encrypted or is not a database"</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloaded-sqlite-quot-file-is-encrypted-or-is-not-a-database/m-p/267566#M15731</link>
      <description>Yes, the download is complete when the response fires. &lt;BR /&gt;&lt;BR /&gt;If the uploaded version is correct, please check the downloaded copy directly to see if it has the expected data.</description>
      <pubDate>Mon, 05 Mar 2018 21:03:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloaded-sqlite-quot-file-is-encrypted-or-is-not-a-database/m-p/267566#M15731</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-03-05T21:03:12Z</dc:date>
    </item>
  </channel>
</rss>

