c# - Posting file from mvc controller to webAPI service -


a little background on our system, have mvc application creates , displays forms, posts these forms controller within mvc application. verification etc. etc.

i want able use upload file (currently using post contoller pulling out httppostedfilebase) have send file seperate application api pull file information, store information in database, , save file generic.

i have method can pull apart/save file stuff, have controller accepts form post , gets relevant data including httppostedfilebase. need way send file (which not saved yet) on our api.

we hoping avoid turning file base64 string.

this in c#.

have looked @ answer: web api: how access multipart form values when using multipartmemorystreamprovider?

i think provide ideas on how handle streaming files in memory.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -