<?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: Download a file or directory in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-or-directory/m-p/212151#M10734</link>
    <description>&lt;P&gt;Based on the stack trace, this error is ocuring in the "new FileOutputStream" line, and not in&amp;nbsp;Dropbox code, so I'm afraid I can't offer much insight.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, the "Zugriff verweigert" error seems to translate to "Access denied", so it may be a permissions issue. You'll need to investigate why you don't have permission to access that file, and fix it so that you can.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Mar 2017 17:59:24 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-03-17T17:59:24Z</dc:date>
    <item>
      <title>Download a file or directory</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-or-directory/m-p/212115#M10726</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;actually I am trying to program a Java application which can enter dropbox, look up which directories and files exist, upload a file and download a directory. Unfortunately I have some problems with the downloading part.&lt;/P&gt;&lt;P&gt;Every time I try to download &amp;nbsp;only a file the &amp;nbsp;it tells me that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception in thread "main" java.io.FileNotFoundException: \test.txt (Zugriff verweigert)&lt;BR /&gt;at java.io.FileOutputStream.open0(Native Method)&lt;BR /&gt;at java.io.FileOutputStream.open(Unknown Source)&lt;BR /&gt;at java.io.FileOutputStream.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt;at java.io.FileOutputStream.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt;at Dropbox.downloadFile(Dropbox.java:73)&lt;BR /&gt;at Main.main(Main.java:15)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I know that this file exists. here is the code for the downloading function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public void downloadFile(String path) throws ListFolderErrorException, DbxException, IOException&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; FileOutputStream out = new FileOutputStream("/test.txt");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; DbxDownloader&amp;lt;FileMetadata&amp;gt; downloader = null;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; FileMetadata response;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; response = downloader.getResult();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; try {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; InputStream in = downloader.getInputStream();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } finally {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; downloader.close();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someonehelp me with that? I can't really find an answer in web.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-or-directory/m-p/212115#M10726</guid>
      <dc:creator>Kid</dc:creator>
      <dc:date>2019-05-29T09:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Download a file or directory</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-or-directory/m-p/212151#M10734</link>
      <description>&lt;P&gt;Based on the stack trace, this error is ocuring in the "new FileOutputStream" line, and not in&amp;nbsp;Dropbox code, so I'm afraid I can't offer much insight.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, the "Zugriff verweigert" error seems to translate to "Access denied", so it may be a permissions issue. You'll need to investigate why you don't have permission to access that file, and fix it so that you can.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 17:59:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-a-file-or-directory/m-p/212151#M10734</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-17T17:59:24Z</dc:date>
    </item>
  </channel>
</rss>

