I'm creating a xlsx file utilizing the ExcelPackage object, and would like to set this byte[] as an attachment within my 2007 IP Browser Enabled form. I'm creating the excel file and converting it to base64 before attachmentNode.setvalue(), but I keep getting the following error: Schema validation found non-data type errors.
Any ideas?
...
byte[] filedata = xlsxPkg.GetAsByteArray();
...
attachmentNode.SetValue(Convert.ToBase64String(filedata));