title: Files from Android Retrofit to ASP.net
body: <p>I'm currently trying to upload Android logs (.zip) to an ASP.net server.
  For now I have the currently Retrofit part:</p>
  
  <pre><code>    @Headers("Accept: Application/JSON")
      @Multipart
      @POST("/api/Device/GetLog")
      Call&lt;Result&gt; GetLog(@Part("zippedLog")RequestBody file, 
  @Part("imei") String imei, 
  @Part("dateLogStart") String dateLogStart, 
  @Part("dateLogEnd") String dateLogEnd);
  </code></pre>
  
  <p>The call is being done by the Logger Class.</p>
  
  <pre><code>         File file = new File(path);
  
          RequestBody requestBody =
                  RequestBody.create(MediaType.parse("multipart/form-data"), file);
  
          Call&lt;Result&gt; call = ApiServiceImpl.getInstance().GetLog(requestBody,SystemProp.getInstance().getImei(), start.toString().replace(" ", "-"), 
  end.toString().replace(" ", "-"));
          call.enqueue(new Callback&lt;Result&gt;() {
              @Override
              public void onResponse(retrofit.Response&lt;Result&gt; response, Retrofit retrofit) {
                  Result result = response.body();
              }
  
              @Override
              public void onFailure(Throwable t) {
                  Log.e("Upload", t.getMessage());
              }
          });
  </code></pre>
  
  <p>However I have no clue to how should I write the server part to wait this file.
  What I have tried is</p>
  
  <pre><code>[HttpPost]
  [AllowAnonymous]
  public DtoResultBase GetLog(byte[] zippedLog, string imei, string dateLogStart, string dateLogEnd)
  {
      return Resolve(() =&gt;
      {
          //Call Method that save the file
  
          return new DtoResultBase();
      });
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>