I wonder if there is a posibility not to use input file tag and pass file to server. For example, i want to pass image that is shown in <img /> tag.
-
Pass it as base 64 encoded string format of bytes and convert it back to bytes in server sideMurali Murugesan– Murali Murugesan2014-04-01 09:30:37 +00:00Commented Apr 1, 2014 at 9:30
Add a comment
|
1 Answer
You can use the javascript XHR object to upload a file to the server. This approach does not use HttpPostedFileBase. There's a good example of how to do it here: File API File Upload - Read XMLHttpRequest in ASP.NET MVC