File Upload Not Working from Android or iOS App
In My WCF Service, File Upload not workingI take file as bas64string format. File upto 60kb works fine but above that WCF Service won't get hit.
in Config I have done all possible changes , which all I got from web. Like.
<httpRuntime maxUrlLength="90999" maxQueryStringLength="2097151" maxRequestLength="67108864" requestValidationMode="2.0" />
<dataContractSerializer maxItemsInObjectGraph="2147483646" />
<binding name="Contract Name" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed" />
<webHttpBinding>
<binding name="ContractName.WebHttp" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" transferMode="Streamed" sendTimeout="00:05:00">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
<security mode="None" />
</binding>
</webHttpBinding>
Interface
<OperationContract()> _
<WebInvoke(Method:="POST", BodyStyle:=WebMessageBodyStyle.WrappedRequest, RequestFormat:=WebMessageFormat.Json, ResponseFormat:=WebMessageFormat.Json, UriTemplate:="/FileUpload?")> _
Sub FileUpload(ByVal FileBinaryArray As String, ByVal FileName As String)
.svc file
Public Sub FileUpload(ByVal FileBinaryArray As String, ByVal FileName As String) Implements Interface.FileUpload
Try
FunFileUpload(FileBinaryArray, FileName)
Catch ex As Exception
End Try
End Sub
So how to implement file Upload upto 1 GB