Hi,
Wonder if anyone's seen this:
I drag a document event onto my process and configure it to upload a document to a MOSS workspace. I set all my options in the wizard, compile the process and export.
When I try to upload the document, the process always crashes with "System.FormatException: Invalid character in a Base-64 string."
So I generate code on the event and comment out these two lines:
// K2Base64.K2Base64 K2B64 = new K2Base64.K2Base64();
// oByte = K2B64.DecodeBase64(K2.ProcessInstance.DataFields["FilePath"].Value.ToString());
And replace them with one lifted verbatim from the code that gets generated against a SPS2003 workspace:
oByte = System.Text.ASCIIEncoding.ASCII.GetBytes(K2.ProcessInstance.DataFields["FilePath"].Value.ToString());
And now I can upload documents without an issue.
Obviously my problem seems to be solved but I'd be interested in any thoughts on this behaviour. Is it just a bug in the generated code?
Thanks, Richard