<?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: Help to remove error in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-to-remove-error/m-p/727699#M32190</link>
    <description>&lt;P&gt;Based on the error message, that looks like an issue interacting with the local filesystem, not the Dropbox API, so we can't offer help with that. I suggest referring to the documentation for your platform for information on how to access and debug use of the local filesystem.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Nov 2023 15:12:16 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-11-07T15:12:16Z</dc:date>
    <item>
      <title>Help to remove error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-to-remove-error/m-p/727578#M32180</link>
      <description>&lt;P&gt;Hi everyone, Good morning&lt;BR /&gt;I got a error when I try to upload a pic using dropbox&amp;nbsp;&lt;BR /&gt;This is image path that I give:&amp;nbsp;&amp;nbsp;"C:\Users\ADITYA\Downloads\imagetest.jpg"&lt;BR /&gt;This is error that I get :&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;DIV class=""&gt;Image file not found at the specified path: C:/Users/ADITYA/Downloads/imagetest.jpg&lt;/DIV&gt;
&lt;DIV class=""&gt;Reason:&lt;/DIV&gt;
&lt;DIV class=""&gt;Snap failed unexpectedly and did not provide any reason&lt;BR /&gt;&lt;BR /&gt;This is code for operation :&amp;nbsp;&lt;BR /&gt;
&lt;PRE&gt;&lt;SPAN&gt;case &lt;/SPAN&gt;&lt;SPAN&gt;UPLOAD_PICTURE&lt;/SPAN&gt;:    &lt;BR /&gt;String pathToImageFile = &lt;SPAN&gt;"C:/Users/ADITYA/Downloads/imagetest.jpg"&lt;/SPAN&gt;&lt;SPAN&gt;;  &lt;BR /&gt;&lt;/SPAN&gt;String fileName = &lt;SPAN&gt;"imagetest.jpg"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;String dropboxPath = &lt;SPAN&gt;"/apps/imagetest.jpg"&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;// Change this to the path you desire in Dropbox&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;try &lt;/SPAN&gt;{&lt;BR /&gt;    Path imagePath = Paths.&lt;SPAN&gt;get&lt;/SPAN&gt;(pathToImageFile)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    if &lt;/SPAN&gt;(Files.&lt;SPAN&gt;exists&lt;/SPAN&gt;(imagePath)) {&lt;BR /&gt;        &lt;SPAN&gt;try &lt;/SPAN&gt;(InputStream in = &lt;SPAN&gt;new &lt;/SPAN&gt;FileInputStream(pathToImageFile)) {&lt;BR /&gt;            FileMetadata metadata = client.files().uploadBuilder(dropboxPath)&lt;BR /&gt;                    .uploadAndFinish(in)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;            &lt;SPAN&gt;outputViews&lt;/SPAN&gt;.write(&lt;SPAN&gt;documentUtility&lt;/SPAN&gt;.newDocument(metadata))&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;        }&lt;BR /&gt;    } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;        &lt;SPAN&gt;throw new &lt;/SPAN&gt;RuntimeException(&lt;SPAN&gt;"Image file not found at the specified path: " &lt;/SPAN&gt;+ pathToImageFile)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;    }&lt;BR /&gt;} &lt;SPAN&gt;catch &lt;/SPAN&gt;(IOException | DbxException e) {&lt;BR /&gt;    &lt;SPAN&gt;throw new &lt;/SPAN&gt;RuntimeException(e)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;}&lt;BR /&gt;&lt;SPAN&gt;break;&lt;/SPAN&gt;&lt;/PRE&gt;
Please help me to resolve the problem&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Nov 2023 07:21:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-to-remove-error/m-p/727578#M32180</guid>
      <dc:creator>Adi4</dc:creator>
      <dc:date>2023-11-07T07:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help to remove error</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-to-remove-error/m-p/727699#M32190</link>
      <description>&lt;P&gt;Based on the error message, that looks like an issue interacting with the local filesystem, not the Dropbox API, so we can't offer help with that. I suggest referring to the documentation for your platform for information on how to access and debug use of the local filesystem.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 15:12:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Help-to-remove-error/m-p/727699#M32190</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-11-07T15:12:16Z</dc:date>
    </item>
  </channel>
</rss>

