# 【質問内容】API連携におけるバイナリファイルのアップ方法
APIコネクターではバイナリファイルをア......

**URL:** <https://www.nocode-faq.com/t/topic/591>\
**Category:** bubble\
**Created:** [2021 年 2 月 2 日午前 8:56 UTC](https://www.nocode-faq.com/t/topic/591 "2021-02-02T08:56:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Question\_user](https://avatars.discourse-cdn.com/v4/letter/q/53a042/32.png) [@Question\_user](https://www.nocode-faq.com/u/Question_user)\
**Post date:** [2021 年 2 月 2 日午前 8:56 UTC](https://www.nocode-faq.com/t/topic/591/1 "2021-02-02T08:56:10Z")

</div>

【質問内容】API連携におけるバイナリファイルのアップ方法  
APIコネクターではバイナリファイルをアップロードすることができずに困っています。  
フォーラムでも同様の質問を見つけましたが、解決方法がないようです・・・  
凄く傲慢な質問になって申し訳ございませんが、どなたか解決方法をご存知の方はおられないでしょうか？

> **[Attach binary file to an API call - API Connector](https://forum.bubble.io/t/attach-binary-file-to-an-api-call-api-connector/72597)**
>
> Hello Builders, I’m trying to integrate the following API call curl "https://{subdomain}.zendesk.com/api/v2/uploads.json?filename=myfile.dat&token={optional\_token}" \\ -v -u {email\_address}:{password} \\ -H "Content-Type:...

---

<div class="post-metadata">

**Author:** ![Answer\_user](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@Answer\_user](https://www.nocode-faq.com/u/Answer_user)\
**Post date:** [2021 年 2 月 2 日午前 8:56 UTC](https://www.nocode-faq.com/t/topic/591/2 "2021-02-02T08:56:11Z")

</div>

裏で起きてるのは次の３通りが考えられます。

1. Bubble側で「送信できるファイルサイズの上限に引っかかった」
2. API連携側で「送信できるファイルサイズの上限に引っかかった」
3. Bubble側でそもそもバイナリを送信できる仕様になってない  
フォーラムの回答を見る限り「3」に近い気がしますが、送れる、送れないで言うと条件付きで「送れます」  
例えばAPI連携側のサーバーをたかしさんが管理できる状態であれば、送信する内容を全て「短い文字列」に置き換え(BASE64暗号化)、それをAPI側でバイナリに変換することでこの手の問題は解決されます。  
なので実際には「現状難しい」が回答になりますね…。
