First i would like to apologize since this is not exactly an issue, it is just that i can find no other place to ask about this or find any existing information about my problem, and since this control is so new i guess this is the best option. Also others might be wondering about the same.
Well, hopefully this is simple: I am creating a multistep application form, in one of those steps the user has to uploaded some documents like a resumé for example. To not break out of the process i would like to use AjaxFileUpload to make it easier for the user.
As soon as the file is uploaded it has to be saved directly to database ("image" datatype), which means converting the uploaded file to a byte array.
The thing is, i can not do it the normal way that is used with a traditional "FileUpload" control, and i can not deduce any alternate methods. The closest i think i got is that "AjaxFileUploadEventArgs" contains a "GetContents" method which either wont work or i am using it incorrectly.
I hope it makes sense and sorry again if this is the wrong place to ask. I will of course provide additional information ASAP if asked.
Comments: private static byte[] [] photo; private static int imgCount; //PageLoad if (!Page.IsPostBack) { imgCount = 0; photo = new byte[5] [];} //OnUploadComplete photo[imgCount++] = e.GetContents(); This works in saving it to the byte array.
Well, hopefully this is simple: I am creating a multistep application form, in one of those steps the user has to uploaded some documents like a resumé for example. To not break out of the process i would like to use AjaxFileUpload to make it easier for the user.
As soon as the file is uploaded it has to be saved directly to database ("image" datatype), which means converting the uploaded file to a byte array.
The thing is, i can not do it the normal way that is used with a traditional "FileUpload" control, and i can not deduce any alternate methods. The closest i think i got is that "AjaxFileUploadEventArgs" contains a "GetContents" method which either wont work or i am using it incorrectly.
I hope it makes sense and sorry again if this is the wrong place to ask. I will of course provide additional information ASAP if asked.
Comments: private static byte[] [] photo; private static int imgCount; //PageLoad if (!Page.IsPostBack) { imgCount = 0; photo = new byte[5] [];} //OnUploadComplete photo[imgCount++] = e.GetContents(); This works in saving it to the byte array.