# File Transfer using BX3105

**URL:** <https://forum.sierrawireless.com/t/file-transfer-using-bx3105/30481>\
**Category:** WiFi and Bluetooth Modules\
**Created:** [August 20, 2023, 8:29am UTC](https://forum.sierrawireless.com/t/file-transfer-using-bx3105/30481 "2023-08-20T08:29:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![balajig](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@balajig](https://forum.sierrawireless.com/u/balajig)\
**Post date:** [August 20, 2023, 8:29am UTC](https://forum.sierrawireless.com/t/file-transfer-using-bx3105/30481/1 "2023-08-20T08:29:14Z")

</div>

Hi there!

I am looking into do a file transfer (size = 1MB) from a Server to BX3105 Module which is placed in a custom board where STM32F413 MCU communicates with BX3105 over UART. Based on references, I understood that HTTP/TCP are the best options.

So I have tried with first option HTTP. I found that KHTTPGET is the command used to transfer the file at a single instant. But I specially need to transfer the file by breaking into small chunks from the receiver side in order to reduce the complexity of buffer management like requesting specific length of the file to sever. Is it possible in HTTP or is that anything like that available on TCP. Please let me know.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [August 20, 2023, 2:59pm UTC](https://forum.sierrawireless.com/t/file-transfer-using-bx3105/30481/2 "2023-08-20T14:59:51Z")

</div>

Why don’t you split the 1Mb file into multiple files and download them one by one?

---

<div class="post-metadata">

**Author:** ![balajig](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@balajig](https://forum.sierrawireless.com/u/balajig)\
**Post date:** [August 20, 2023, 3:14pm UTC](https://forum.sierrawireless.com/t/file-transfer-using-bx3105/30481/3 "2023-08-20T15:14:36Z")

</div>

But When I execute KHTTPGET command I will be getting a entire 1MB file in my receiving buffer where RAM overflow can happen right?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [August 20, 2023, 3:24pm UTC](https://forum.sierrawireless.com/t/file-transfer-using-bx3105/30481/4 "2023-08-20T15:24:22Z")

</div>

Why don’t you split the 1Mb file into multiple files and download them one by one?

Each file will then be smaller than 1Mb

---

<div class="post-metadata">

**Author:** ![balajig](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@balajig](https://forum.sierrawireless.com/u/balajig)\
**Post date:** [August 20, 2023, 3:32pm UTC](https://forum.sierrawireless.com/t/file-transfer-using-bx3105/30481/5 "2023-08-20T15:32:40Z")

</div>

Server doesn’t have that kind of functionality as of now, that’s why

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [August 20, 2023, 4:56pm UTC](https://forum.sierrawireless.com/t/file-transfer-using-bx3105/30481/6 "2023-08-20T16:56:57Z")

</div>

Your http server can only have one file to be downloaded?  
What http server are you using?

---

<div class="post-metadata">

**Author:** ![balajig](https://avatars.discourse-cdn.com/v4/letter/b/3da27b/32.png) [@balajig](https://forum.sierrawireless.com/u/balajig)\
**Post date:** [August 20, 2023, 7:01pm UTC](https://forum.sierrawireless.com/t/file-transfer-using-bx3105/30481/7 "2023-08-20T19:01:40Z")

</div>

I can understand your question and I found it as solution thank you. By the way, I am using a generic http file transfer application
