title: Android Retrofit - "Request Entity Too Large" Error
body: <p>I am sending an encoded(base64) image to the node.js express server and the image has 25000 characters. But when request sent, server gives "Request entity is too large" error. I think, this error depends to the Android request because I am able to send the same request with the Postman.</p>
  
  <p>Here is the Retrofit Client:</p>
  
  <pre><code>import retrofit2.Retrofit;
  import retrofit2.converter.gson.GsonConverterFactory;
  
  public class ApiClient {
      private static final String main_url = "http://xxxxxxxxxxxxxxxxxxxxxxxx/";
      private static Retrofit retrofit = null;
  
      public static Retrofit getRetrofit() {
          if(retrofit == null){
              retrofit = new Retrofit.Builder()
                      .baseUrl(main_url)
                      .addConverterFactory(GsonConverterFactory.create())
                      .build();
          }
          return retrofit;
      }
  }
  </code></pre>
  
  <p>And the request:</p>
  
  <pre><code>@FormUrlEncoded
  @POST("api/updateStudentInfo/")
  Call&lt;Bts&gt; updateStudent(@Field("StudentId") String id,
                            @Field("StudentName") String name,
                            @Field("StudentSurname") String surname,
                            @Field("ParentName") String parentName,
                            @Field("ParentSurname") String parentSurname,
                            @Field("ParentEmail") String parentEmail,
                            @Field("LicencePlate") String licencePlate,
                            @Field("Address") String address,
                            @Field("ParentPhone") String phone,
                            @Field("StudentPhoto") String photo);
  </code></pre>