Thank you for the finishedLoading idea. I did it and it kinda works. But because the attachment is in a repeating section, it seems to keep messing up. but I am not so worried about that.
Now when I try to upload an attachment that is fairly large in size (24MB), I am getting this error: .
Details: Exception of type 'System.OutOfMemoryException' was thrown.. Stack:
at System.Convert.FromBase64String(String s)
at
Qdabra.Tools.RulesLibrary.Commands.GetBase64Values(String base64Value,
String& fileName, String& fileExtension, Int32& fileSize,
Byte[]& file)
at
Qdabra.Tools.RulesLibrary.Commands.SaveFileToSharepoint_Client(XPathNavigator
fileNode, String& url, String requestedFileName, String fileNameXPath,
String overwriteExisting, String dsnameprog, String xpathprog, String
copyServiceName, String copyServiceUrl)
at
Qdabra.Tools.RulesLibrary.Commands.SaveToSharePoint_Client(String url, String
domName, String nodeXPath, String fileName, String fileNameXPath, String
overwriteExisting, String async, String dsnameprog, String xpathprog, String
copyServiceName, String copyServiceUrl, Boolean clear)
at
Qdabra.Tools.RulesLibrary.Commands.SaveToSharePoint()
at
Qdabra.Tools.RulesLibrary.Commands.RunCommand(String commandName)
at
Qdabra.Tools.RulesLibrary.Commands.ExecuteCommand()
Do you know what could be causing a OutofMemoryException error? Does this mean the file is too large? Is there a workaround?
Thank you!