file uploads in Tasks

Nov 26, 2009 at 6:48 PM

Hi,

I am trying to get file upload to work in a task form and am running into a problem. 

in SaveData I do this:

taskData["datoteka"] = FileUpload1.FileBytes;

if I debug this it looks ok, I put in a byte[].

However in the workflow when I do this:

byte[] datoteka = (byte[])AliJeStrankaTaskChanged1_AfterProperties1.ExtendedProperties["datoteka"];

it doesn't work because in ExtendedProperties I only have a string "byte[]". Looks like something converts it to a string somewhere, but so far as much as I looked through your source code I couldn't find where this would be happening. I tried debugging but can't get the debugger to step into your code - I've compiled it in Debug mode, set the reference from my project to yours and it seems to build and deploy ok, but I still can't debug it. 

Any help would be appreciated!

Dec 4, 2009 at 8:09 AM

Noone? I've managed to do it by converting to base64, but it's not the best solution...