question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to do binary file upload instead of Multipart File upload

See original GitHub issue

I want to upload files to Backblaze storage in this way

image

That is , they need to append the File as binary body instead of Form Data

The documentation link https://www.backblaze.com/b2/docs/b2_upload_file.html

In your library , there is no mention about binary body . Only .addFileUpload which id s Form Data type or Multipart

So I am struck

Please help to upload file as in the backblaze docs

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
gotevcommented, Dec 17, 2019

There’s the BinaryUploadRequest which does exactly what you need. Check it also on the demo app.

0reactions
lock[bot]commented, Jun 24, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related issues, referencing this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring upload non multipart file as a stream - Stack Overflow
I am working with Spring Boot 1.2.5 and I would like to upload a raw binary file to a controller ...
Read more >
How to build Multipart request with binary file content?
Solved: Hi All, when i upload a image as "multipart/form-data" directly to the backend i'm getting success response. But i have a.
Read more >
Inputs and Binary File Upload Examples | Connect REST API ...
Make HTTP POST, PATCH, and PUT requests using inputs and learn more about uploading binary files.
Read more >
Upload Data using Multipart. <form action ... - Medium
First name: Last name:
Read more >
Spring boot file upload - eduCBA
In Spring boot, we can upload files to the server by making our HTTP request multipart. This type of request is used to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found