# Files transfer between clients/gateway

**URL:** <https://forum.inductiveautomation.com/t/files-transfer-between-clients-gateway/98037>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [November 1, 2024, 9:09am UTC](https://forum.inductiveautomation.com/t/files-transfer-between-clients-gateway/98037 "2024-11-01T09:09:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![brarda](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@brarda](https://forum.inductiveautomation.com/u/brarda)\
**Post date:** [November 1, 2024, 9:09am UTC](https://forum.inductiveautomation.com/t/files-transfer-between-clients-gateway/98037/1 "2024-11-01T09:09:49Z")

</div>

Good morning, I use ignition 8.1.36. In an application in Vision I have to move some image files that the operator uploads to the Client station and transfer them to the machine where the gateway is installed to be able to share them with the other Clients.  
Each Client can view the files in addition to uploading them.  
In Vision the Client can only view images present in a folder on the machine or reachable.  
I do not have the possibility of sharing the machine folders with the gateway.  
So we have developed a simple "file transfer" server external to Ignition, it works but I would like to check if it is possible to do the same thing from within ingnition. Is there any solution/component integrated into Ignition that can do the same job? Thanks

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 1, 2024, 11:43am UTC](https://forum.inductiveautomation.com/t/files-transfer-between-clients-gateway/98037/2 "2024-11-01T11:43:20Z")

</div>

Yes, you can use `system.util.sendRequest()` to move files and file contents back and forth, and ask the gateway what files it already has. You will have to may your own tables/lists to display the gateway contents.

---

<div class="post-metadata">

**Author:** ![brarda](https://avatars.discourse-cdn.com/v4/letter/b/8797f3/32.png) [@brarda](https://forum.inductiveautomation.com/u/brarda)\
**Post date:** [November 1, 2024, 4:27pm UTC](https://forum.inductiveautomation.com/t/files-transfer-between-clients-gateway/98037/3 "2024-11-01T16:27:55Z")

</div>

> [@pturmel](#):
>
> system.util.sendRequest()

Thanks for your reply, where can I find some examples similar to my application?

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [November 1, 2024, 5:07pm UTC](https://forum.inductiveautomation.com/t/files-transfer-between-clients-gateway/98037/4 "2024-11-01T17:07:31Z")

</div>

This might be helpful.

> [@Share Audio Clips Between Gateway and Clients](https://forum.inductiveautomation.com/t/share-audio-clips-between-gateway-and-clients/95286):
>
> Didn't want to revive an old [thread](https://forum.inductiveautomation.com/t/play-an-mp3-file-yes-yes-you-can/15219/9), but have the same question now. The end goal is to repeatedly play this sound based on an expression tag, but for now I want to test it with a button. I've got the script: from javafx.scene.media import AudioClip def demoAlarmSound(audioPath): notify = AudioClip(audioPath) notify.play() But I get the error that javafx is unknown. How can I play mp3 in Ignition 8.1 ? edit: this thread got pretty long on the first step of the process, so I've renamed it…

---

<div class="post-metadata">

**Author:** ![stevenson](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@stevenson](https://forum.inductiveautomation.com/u/stevenson)\
**Post date:** [November 1, 2024, 5:07pm UTC](https://forum.inductiveautomation.com/t/files-transfer-between-clients-gateway/98037/5 "2024-11-01T17:07:37Z")

</div>

[IA-Forums\_2024-11-01\_1006.zip](https://forum.inductiveautomation.com/uploads/short-url/8rOxVzutLwBKytDTPQPLJZypSEQ.zip) (4.8 KB)  
This was built in 8.1.36

---

<div class="post-metadata">

**Author:** ![Luca\_Bigi](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@Luca\_Bigi](https://forum.inductiveautomation.com/u/Luca_Bigi)\
**Post date:** [November 6, 2024, 1:03pm UTC](https://forum.inductiveautomation.com/t/files-transfer-between-clients-gateway/98037/6 "2024-11-06T13:03:18Z")

</div>

Good morning, I tried using system.util.sendRequest() together with a message handler, but it only works when I try to send a file from the client to the gateway, not the other way around. What do I need to do to make sure that files can be sent from the gateway to the client? Thanks

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 6, 2024, 1:34pm UTC](https://forum.inductiveautomation.com/t/files-transfer-between-clients-gateway/98037/7 "2024-11-06T13:34:46Z")

</div>

You would use a message handler in the gateway that retrieves the file bytes and **returns** them.

---

<div class="post-metadata">

**Author:** ![Luca\_Bigi](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@Luca\_Bigi](https://forum.inductiveautomation.com/u/Luca_Bigi)\
**Post date:** [November 6, 2024, 4:10pm UTC](https://forum.inductiveautomation.com/t/files-transfer-between-clients-gateway/98037/8 "2024-11-06T16:10:53Z")

</div>

It worked, thank you very much.
