<?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: Upload of .bin file &amp;gt;400mb in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/upload-of-bin-file-gt-400mb/m-p/88920#M37661</link>
    <description>&lt;P&gt;Hello Slash,&lt;/P&gt;&lt;P&gt;Thank you for your response. I'm encountering the same issue as described. I tried running the provided code in my Databricks workspace, but I received an error. My question is how the script is expected to access local files, especially since the file I’m trying to upload ("pytorch_model.bin") has both read and write permissions on my local machine.&lt;/P&gt;&lt;P&gt;Additionally, once I successfully upload the file to DBFS using the API, can I access and read the file directly from my code, or will I need to use a separate API to retrieve it?&lt;/P&gt;&lt;P&gt;Any guidance or clarification on these points would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Parameters&lt;BR /&gt;databricks_workspace_url="&amp;lt;url&amp;gt;"&lt;BR /&gt;personal_access_token="&amp;lt;token&amp;gt;"&lt;BR /&gt;local_file_path="C:\\Users\\&amp;lt;Username&amp;gt;\\Downloads\\pytorch_model.bin"&lt;BR /&gt;dbfs_file_path="pytorch_model.bin"&lt;BR /&gt;overwrite_file="true"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kartheek_Katta_0-1725651494394.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10996iBC5DA703674937C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kartheek_Katta_0-1725651494394.png" alt="Kartheek_Katta_0-1725651494394.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 06 Sep 2024 19:44:36 GMT</pubDate>
    <dc:creator>Kartheek_Katta</dc:creator>
    <dc:date>2024-09-06T19:44:36Z</dc:date>
    <item>
      <title>Upload of .bin file &gt;400mb</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-of-bin-file-gt-400mb/m-p/88689#M37580</link>
      <description>&lt;P&gt;I try to upload to local workspace folder with .bin extension.&lt;BR /&gt;It is required to have it locally.&lt;BR /&gt;&lt;BR /&gt;I tried load from DBFS, but loading files over 265mb is not allowed with cluster.&amp;nbsp;&lt;BR /&gt;I tried to upload manually but failed with same error "&lt;SPAN&gt;&lt;SPAN class=""&gt;OSError: [Errno5] Input/output error".&lt;BR /&gt;also i tried to compress file but since this is binary file compression didn't change significantly file size and manual upload failed as previous attempt.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How can I upload that .bin file to local storage of my workspace?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 10:16:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-of-bin-file-gt-400mb/m-p/88689#M37580</guid>
      <dc:creator>oleh_v</dc:creator>
      <dc:date>2024-09-05T10:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Upload of .bin file &gt;400mb</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-of-bin-file-gt-400mb/m-p/88695#M37583</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/119380"&gt;@oleh_v&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can try below approach, its supports data up to 2GB. For example using curl:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Parameters
databricks_workspace_url="&amp;lt;databricks-workspace-url&amp;gt;"
personal_access_token="&amp;lt;personal-access-token&amp;gt;"
local_file_path="&amp;lt;local_file_path&amp;gt;"              # ex: /Users/foo/Desktop/file_to_upload.png
dbfs_file_path="&amp;lt;dbfs_file_path&amp;gt;"                # ex: /tmp/file_to_upload.png
overwrite_file="&amp;lt;true|false&amp;gt;"


curl --location --request POST https://${databricks_workspace_url}/api/2.0/dbfs/put \
     --header "Authorization: Bearer ${personal_access_token}" \
     --form contents=@${local_file_path} \
     --form path=${dbfs_file_path} \
     --form overwrite=${overwrite_file}&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://kb.databricks.com/dbfs/upload-large-files-using-dbfs-api-20-and-powershell" target="_blank" rel="noopener"&gt;Upload large files using DBFS API 2.0 and PowerShell - Databricks&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 10:34:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-of-bin-file-gt-400mb/m-p/88695#M37583</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-09-05T10:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Upload of .bin file &gt;400mb</title>
      <link>https://community.databricks.com/t5/data-engineering/upload-of-bin-file-gt-400mb/m-p/88920#M37661</link>
      <description>&lt;P&gt;Hello Slash,&lt;/P&gt;&lt;P&gt;Thank you for your response. I'm encountering the same issue as described. I tried running the provided code in my Databricks workspace, but I received an error. My question is how the script is expected to access local files, especially since the file I’m trying to upload ("pytorch_model.bin") has both read and write permissions on my local machine.&lt;/P&gt;&lt;P&gt;Additionally, once I successfully upload the file to DBFS using the API, can I access and read the file directly from my code, or will I need to use a separate API to retrieve it?&lt;/P&gt;&lt;P&gt;Any guidance or clarification on these points would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Parameters&lt;BR /&gt;databricks_workspace_url="&amp;lt;url&amp;gt;"&lt;BR /&gt;personal_access_token="&amp;lt;token&amp;gt;"&lt;BR /&gt;local_file_path="C:\\Users\\&amp;lt;Username&amp;gt;\\Downloads\\pytorch_model.bin"&lt;BR /&gt;dbfs_file_path="pytorch_model.bin"&lt;BR /&gt;overwrite_file="true"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kartheek_Katta_0-1725651494394.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/10996iBC5DA703674937C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kartheek_Katta_0-1725651494394.png" alt="Kartheek_Katta_0-1725651494394.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Sep 2024 19:44:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/upload-of-bin-file-gt-400mb/m-p/88920#M37661</guid>
      <dc:creator>Kartheek_Katta</dc:creator>
      <dc:date>2024-09-06T19:44:36Z</dc:date>
    </item>
  </channel>
</rss>

