Clarification on GatewayContext Data Storage

In later versions of the SDK documentation I'm not able to find methods for accessing the data directories of Ignition.

Specifically this guide: Storing Configuration Data | Ignition SDK Programmer's Guide mentions GatewayContext.getHome() but this only seems applicable to older versions.

Is there a change to the mechanisms for dealing with file storage in Ignition?

Specifically - I'm simply wanting to allow document upload for a module however other forum posts mention using BLOBs in database instead, is file-based storage no longer supported?

See: GatewayContext (ignition 7.8.4-rc1 API)

And: GatewayContext (8.3)

Right after posting I came across this topic which seems to locate the required method: Is there a way withthe SDK to obtain the gateway data directory path? - #4 by PGriffith

I'm suspecting the SDK guide is out of date?

You can get a SystemManager from the GatewayContext, that can tell you a bunch of different paths.

3 Likes