89370

File uploading not working on Win phone 8 3G connection

Question:

I have a app in which user can record video and an api to upload recorded video to azure. I am using below code

HttpClientHandler handler = new HttpClientHandler(); handler.MaxRequestContentBufferSize = int.MaxValue; using (HttpClient httpClient = new HttpClient(handler) { MaxResponseContentBufferSize = int.MaxValue }) { MultipartFormDataContent content = new MultipartFormDataContent(); content.Add(new ByteArrayContent(chunks), "file", fileName); HttpResponseMessage response = null; response = await httpClient.PostAsync(new Uri(url), content); return await response.Content.ReadAsStringAsync(); }

This is working only when either connection is wifi or on 3G video is less than of 10 sec. When I tried to upload video of size around 20-30 MB than it fails. In response I got status code 404 Not Found.

I also tried another way to upload but caught same error.

Answer1:

At last, I have changed my api code and send request with 1 mb chunks.

Recommend

  • Ommitting a specific pattern from a regex statement
  • Count the no of Visitors
  • android listview using soap calling
  • Why doesn't border-collapse work in html2pdf?
  • Extract text from “content-disposition: attachment” body part
  • Freeing a double pointer from a struct
  • SML/NJ: How to use HashTable?
  • Rabin Karp Algorithm - How is the worst case O(m*n) for the given input?
  • Not able to open a portlet in liferay dialog
  • InvalidOperationException despite MaxJsonLength = Int32.MaxValue
  • How to create Photoshop Stamp filter analog in any pixel shading language?
  • Best practice to handle default server and ip forwarding in nginx
  • Calculate coordinates for rotated text plus bounding border
  • Dependency mismatch with Jquery Validate plugin
  • TCL: Backslash issue (regsub)
  • UWP client socket block when try to connect on Java server (release mode)
  • how to override Extjs Timefield to show custom max value
  • Unable to create a second dataframe python pandas
  • Copy Access database query into Excel spreadsheet
  • How do I resolve an “invalid quantifier” error with regexp in javascript?
  • Need clarification of Type Casting operator in Swift
  • Getting “A From phone number is required” in JSON call to Twilio
  • Openejb rest integration tests with exception mappers
  • What is the logic behind d3.js nice() ticks
  • How to use HTTP Authentication with PHP and then run the entered data against a database?
  • How do I generate data for Google Visualizations on the server using WebSharper
  • how to avoid the dependencies hell with unit test in angular 2+
  • WSO2 ESB 4.0.3 - Error installing Data Services feature from 4.0.* repositories
  • How to make http call with file in groovy to upload a file and build arguments
  • How to estimate the Kalman Filter with 'KFAS' R package, with an AR(1) transition equation
  • Sending cookie value via httpget but not getting the desired response
  • Seeking advice on Jetty HttpClient Hang
  • output of program is not same as passed argument
  • MySQL WHERE-condition in procedure ignored
  • Rearranging Cells in UITableView Bug & Saving Changes
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Sorting a 2D array using the second column C++
  • java string with new operator and a literal