For customer form I need to upload photo and store it on the file system, but after the whole form is populated and submitted.
I'm uploading file with HttpPostedFileBase using ajax file upload and I tried to store it in the session variable, and after the whole form is submitted to save it from session to file. Tried to convert it to byte array but with no luck.
Didn't find any sample for this to work.
Would someone please be kind to provide some samples how to convert HttpPostedFileBase fileUpload to byte array and back so that I can later store it in a file on server?