File Access on host from remote client

I am trying to access pdf files stored at the Ignition Gateway Server (No Database) from the clients. Using the PDF Viewer. I read in one of the forums thread that it is possible to do it using FactoryPMI and storing the files in the tomcat/root folder. I tried the same for Ignition with no luck. Any help on this matter will be appreciated.

You can put the files in a shared folder and access them by using the windows path to the file. ie: \\myserver\share\IADocs\mydoc.pdf

It worked fine!, but the user has to login to the Gateway Server. I will play a little bit around and see what I found.

If you don’t want the user to have to login, just change the share permissions and give ‘everyone’ readonly access.

Dravik/Robert… Thanks for your help! :thumb_right:

I am having this same issue, but I can’t serve the files on a network share. Is there any way to make pdf files available via the Ignition Web Server?

The easiest way is to store the files as BLOBs in a database, then access them using a query and write them to a temporary file before displaying them - see the example under system.file.writeFile in the user manual.

1 Like

Or, follow the link … tefile.htm

Another option: Ignition does have a Tomcat server in it so you can post files to be served up by Ignition. All you have to do is put the files you want available in the \Ignition\tomcat\webapps\main folder. They you can get them out at hostname:port/main/myfile.ext

One important note: This folder may or may not persist across Ignition version upgrades so always double-check that the files are still in the right spot and it still works when you upgrade.

Thanks Robert. That’s exactly what I wanted to do.