Hi !
I`m trying insert files into database. If it is small file everythink is ok, but when i try to insert file which have 28 MB i got error like in attachment.
In Database destination type is Image
I Use MS SQL 2012
Ignition version 7.6.3 (b2013090513)
Here is code:
DevicesDefSoftware = event.source.parent.getComponent('DropdownVerison').selectedValue
Name = event.source.parent.getComponent('tbCompany').text
path = event.source.parent.getComponent('tbFilePath').text
CreatedBy = system.tag.read("[Client]UserId").value
Description = event.source.parent.getComponent('Text AreaNote').text
if system.gui.confirm("Do you want to add file into database?"):
system.db.runPrepUpdate("INSERT INTO SoftwareFiles (DevicesDefSoftware,Data,Name,CreatedBy,dtCreated,Description) VALUES (?,?,?,?,getdate(),?)",[DevicesDefSoftware,system.file.readFileAsBytes(path),Name,CreatedBy,Description] )
system.gui.messageBox("Success")
system.nav.closeParentWindow(event)