# Sample code for upload data to cloud by using TCP(LTE data)

**URL:** <https://forum.legato.io/t/sample-code-for-upload-data-to-cloud-by-using-tcp-lte-data/6184>\
**Category:** Uncategorized\
**Created:** [April 28, 2022, 12:19am UTC](https://forum.legato.io/t/sample-code-for-upload-data-to-cloud-by-using-tcp-lte-data/6184 "2022-04-28T00:19:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanaporn\_y](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tanaporn\_y](https://forum.legato.io/u/tanaporn_y)\
**Post date:** [April 28, 2022, 12:19am UTC](https://forum.legato.io/t/sample-code-for-upload-data-to-cloud-by-using-tcp-lte-data/6184/1 "2022-04-28T00:19:52Z")

</div>

Does anyone have a sample code for upload data to could by using TCP(LTE data)??

I have use wp7605 module.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 28, 2022, 12:56am UTC](https://forum.legato.io/t/sample-code-for-upload-data-to-cloud-by-using-tcp-lte-data/6184/2 "2022-04-28T00:56:34Z")

</div>

What do you mean by “upload data to could”?  
Can you give some example?

---

<div class="post-metadata">

**Author:** ![tanaporn\_y](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tanaporn\_y](https://forum.legato.io/u/tanaporn_y)\
**Post date:** [April 28, 2022, 12:59am UTC](https://forum.legato.io/t/sample-code-for-upload-data-to-cloud-by-using-tcp-lte-data/6184/3 "2022-04-28T00:59:22Z")

</div>

upload picture or video to the cloud.How can I do?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 28, 2022, 1:17am UTC](https://forum.legato.io/t/sample-code-for-upload-data-to-cloud-by-using-tcp-lte-data/6184/4 "2022-04-28T01:17:53Z")

</div>

What cloud are you using?  
Aws? Azure?

---

<div class="post-metadata">

**Author:** ![tanaporn\_y](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tanaporn\_y](https://forum.legato.io/u/tanaporn_y)\
**Post date:** [April 28, 2022, 1:32am UTC](https://forum.legato.io/t/sample-code-for-upload-data-to-cloud-by-using-tcp-lte-data/6184/5 "2022-04-28T01:32:36Z")

</div>

Haven’t decided yet?

which one you suggest?? and Don’t have to paid for it??

I previously sent the image directly to the server but it have some part is lost during transmitted. So, I want to try or find some way else. Do you thing this way can resolve my previously problem??

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 28, 2022, 1:33am UTC](https://forum.legato.io/t/sample-code-for-upload-data-to-cloud-by-using-tcp-lte-data/6184/6 "2022-04-28T01:33:59Z")

</div>

how about using FTP server?  
Or http post server?  
It would be easier for you

---

<div class="post-metadata">

**Author:** ![tanaporn\_y](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tanaporn\_y](https://forum.legato.io/u/tanaporn_y)\
**Post date:** [April 28, 2022, 1:45am UTC](https://forum.legato.io/t/sample-code-for-upload-data-to-cloud-by-using-tcp-lte-data/6184/7 "2022-04-28T01:45:01Z")

</div>

do you have a sample code for http post server??

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 28, 2022, 2:07am UTC](https://forum.legato.io/t/sample-code-for-upload-data-to-cloud-by-using-tcp-lte-data/6184/8 "2022-04-28T02:07:52Z")

</div>

you can use “curl”

> **[How to make a POST request with cURL](https://linuxize.com/post/curl-post-request/)**
>
> In this article, we're going to explain how to use cURL to make POST requests. The HTTP POST method is used to send data to the remote server.
