# system.tag.importTags with remote tag provider

**URL:** <https://forum.inductiveautomation.com/t/system-tag-importtags-with-remote-tag-provider/105137>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [April 15, 2025, 8:13pm UTC](https://forum.inductiveautomation.com/t/system-tag-importtags-with-remote-tag-provider/105137 "2025-04-15T20:13:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [April 15, 2025, 8:13pm UTC](https://forum.inductiveautomation.com/t/system-tag-importtags-with-remote-tag-provider/105137/1 "2025-04-15T20:13:06Z")

</div>

when we use **system.tag.importTags(filePath,basePath)** with a basePath on a remote provider it take lots more times rather than with a local provider.

I'd like to run a gateway message handler to invoke this function locally, but I'm not sure the file can be sent in the payload.  
For example with 10Mo json file, I can read the file to json, send in the payload, write json to a temorary file and the import locally.

Is there some memory limit for payload in gateway message handler ?

As a side note, destination gateway is Ignition Edge edition

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 15, 2025, 8:25pm UTC](https://forum.inductiveautomation.com/t/system-tag-importtags-with-remote-tag-provider/105137/2 "2025-04-15T20:25:27Z")

</div>

JSON compresses well (mostly because it's incredibly inefficient as an encoding format) - you could gzip it locally and send the byte array. We don't expose any of the mechanisms the gateway network uses for large file transfers (such as backups) to script users, but it may be possible to create something with the SDK that exposes that functionality more easily.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [April 15, 2025, 8:32pm UTC](https://forum.inductiveautomation.com/t/system-tag-importtags-with-remote-tag-provider/105137/3 "2025-04-15T20:32:54Z")

</div>

that's would be usefull, especially if it could be imported in Ignition edge.  
Gateway handler will be executed on Ignition Edge.
