# How can I send large arrays through ports?

**URL:** <https://discourse.elm-lang.org/t/how-can-i-send-large-arrays-through-ports/6672>\
**Category:** Learn\
**Created:** [December 27, 2020, 11:35pm UTC](https://discourse.elm-lang.org/t/how-can-i-send-large-arrays-through-ports/6672 "2020-12-27T23:35:50Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![noise-machines](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/noise-machines/32/3698_2.png) [@noise-machines](https://discourse.elm-lang.org/u/noise-machines)\
**Post date:** [December 29, 2020, 12:19am UTC](https://discourse.elm-lang.org/t/how-can-i-send-large-arrays-through-ports/6672/7 "2020-12-29T00:19:22Z")

</div>

Hi everyone!

Thanks for your help – I’ve got it working now.

I had a Debug.log first thing in my main function that wasn’t getting printed before the error happened, so I assumed the problem was as the array crossed the border into Elm. But after reducing my Elm code down, it looks like the actual issue was somewhere else.

Also, good to know that there’s a difference between Arrays and Lists! I think Arrays are better for my use case since I need random access.

Thanks again!

---

_[View the full topic](https://discourse.elm-lang.org/t/how-can-i-send-large-arrays-through-ports/6672)._
