c# - Object is null when passing a string propery of very long length (Base64 String) to .Net webapi Contoller -


i getting updatecasehearingmodel= null when property "strbase64" has long string. passing strbase64 base64 of file. works small files fails when file size exceeds 4mb(it creates lengthy string).

public httpresponsemessage updatecasehearing([frombody]updatecasehearingmodel updatecasehearingmodel)        {                 try                 {                        //code here                 }        } 

is there way pass long string(of object) webapi contoller in .net.

your application working fine iis configuration has limit of 4mb.

see -> https://msdn.microsoft.com/en-us/library/e1f13641(v=vs.85).aspx

optional int32 attribute. specifies limit input stream buffering threshold, in kb. limit can used prevent denial of service attacks caused, example, users posting large files server.

the default 4096 (4 mb).


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -