AutoSave Report to database?

I would like to autosave a report to a database to be read back later from various clients.

This code works great but its save as a PDF on the gateway."Kiln1/StartUp/K1 ChargeNum")
if load.value == 1 :
	settings = {"path":"D:\KilnReports\K1", "fileName":path, "format":"pdf"}"StartUpK1", project="Kiln_control", action="save", actionSettings=settings)

I see 2 approaches to this. You could use instead of to retrieve a byte array then store this to the database as a blob. However, this will take up a good chunk of space in the DB and potentially cause performance issues. A better approach is to use to save the file in a centralized location, then store the path to the file in your database.

1 Like