# Inbound queue max data size

**URL:** <https://discuss.blues.com/t/inbound-queue-max-data-size/862>\
**Category:** Notehub.io\
**Created:** [June 7, 2022, 7:08pm UTC](https://discuss.blues.com/t/inbound-queue-max-data-size/862 "2022-06-07T19:08:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssozonoff](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@ssozonoff](https://discuss.blues.com/u/ssozonoff)\
**Post date:** [June 7, 2022, 7:08pm UTC](https://discuss.blues.com/t/inbound-queue-max-data-size/862/1 "2022-06-07T19:08:20Z")

</div>

Hi,

What is the maximum data size which can be sent to a notecard via the notehub and inbound queue ?

Thanks,  
Serge

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [June 8, 2022, 1:24pm UTC](https://discuss.blues.com/t/inbound-queue-max-data-size/862/2 "2022-06-08T13:24:43Z")

</div>

Hi @ssozonoff,

Achieving consistent success with larger data packet sizes will depend on a few factors:

1. Which Notecard model you are using (WB\* vs NB\*)
2. Likewise, which cell network you are connecting to (Cat-1 vs LTE-M vs NB-IoT)
3. Cellular signal strength, the antenna in use, etc

I always recommend testing your deployment in the appropriate physical environment and location. That being said, I consider 2KB a very “safe” size and have personally gone up to 8KB with no troubles.

Rob

---

<div class="post-metadata">

**Author:** ![ssozonoff](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@ssozonoff](https://discuss.blues.com/u/ssozonoff)\
**Post date:** [June 8, 2022, 8:14pm UTC](https://discuss.blues.com/t/inbound-queue-max-data-size/862/3 "2022-06-08T20:14:37Z")

</div>

Thanks Rob,

As a follow on to this then, are there any size limitations to the response of a web transaction. i.e could I retrieve a large base64 encoded string as part of a json payload of say 82kb ?

Thanks,  
Serge

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [June 8, 2022, 8:26pm UTC](https://discuss.blues.com/t/inbound-queue-max-data-size/862/4 "2022-06-08T20:26:19Z")

</div>

Are you using [outbound web requests](https://dev.blues.io/reference/notecard-api/web-requests/) as provided in the Notecard API? And the remote service is then returning a relatively large JSON payload back to the Notecard?

If this is the case, I don’t have an immediate answer for you, but I’d like to experiment with it myself soon. If not, just let me know!

Rob

---

<div class="post-metadata">

**Author:** ![ssozonoff](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@ssozonoff](https://discuss.blues.com/u/ssozonoff)\
**Post date:** [June 9, 2022, 6:24am UTC](https://discuss.blues.com/t/inbound-queue-max-data-size/862/5 "2022-06-09T06:24:10Z")

</div>

> [@RobLauer](#):
>
> Are you using [outbound web requests](https://dev.blues.io/reference/notecard-api/web-requests/) as provided in the Notecard API? And the remote service is then returning a relatively large JSON payload back to the Notecard?

Thats the idea yes. At the moment I am exploring options to figure out if this can be done at all. For a bit of context, I need to update an EPD (ePaper Display) which involves sending a bitmap image of roughly 82kb based on the size of the display I am using. This is not something that would happen on a regular basis however.

Thanks,  
Serge

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [June 9, 2022, 4:28pm UTC](https://discuss.blues.com/t/inbound-queue-max-data-size/862/6 "2022-06-09T16:28:58Z")

</div>

Hi @ssozonoff,

After looking through our web API docs more closely, it appears we have some gaps (which I’ll be resolving in the coming days). However, we have a suggestion for your scenario:

Using multiple [web.get requests](https://dev.blues.io/reference/notecard-api/web-requests/), you can instruct the remote server to split a file up into digestible “chunks” and send those to the Notecard:

1. The `name` argument of each request could contain query parameters like “offset” and “length” that let the remote server know which chunk of the file to send (and how many bytes to send at a time).
2. The maximum size of each chunk should be no more than 8192 bytes.
3. Set the `content` argument of web.get to `"application/octet-stream"` to ensure that the server response comes back in the `payload` field.

This will allow for more efficient downloading of the chunks and then you’d have to reassemble the file on the host.

Thanks,  
Rob

---

<div class="post-metadata">

**Author:** ![ssozonoff](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@ssozonoff](https://discuss.blues.com/u/ssozonoff)\
**Post date:** [June 11, 2022, 8:11pm UTC](https://discuss.blues.com/t/inbound-queue-max-data-size/862/7 "2022-06-11T20:11:42Z")

</div>

Hi Rob,

OK thanks, I will experiment with this in the next couple of weeks. My plan is to give CircuitPython a go on the Swan.

Enjoy your weekend,  
Serge

---

<div class="post-metadata">

**Author:** ![ssozonoff](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@ssozonoff](https://discuss.blues.com/u/ssozonoff)\
**Post date:** [July 5, 2022, 7:43am UTC](https://discuss.blues.com/t/inbound-queue-max-data-size/862/8 "2022-07-05T07:43:57Z")

</div>

Hi,

I have gotten this to work now. I did end up reverting to Arduino code however.

 ![IMG_9291](https://us1.discourse-cdn.com/flex020/uploads/blues/original/1X/9bc38c16ea989b52c9c80fa050c773f795f13a0c.jpeg)

Thanks
