Files transfer between clients/gateway

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

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.

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

This might be helpful.

1 Like

IA-Forums_2024-11-01_1006.zip (4.8 KB)
This was built in 8.1.36

1 Like

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

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

It worked, thank you very much.