title: Need to get a string from response returned by api using retrofit2
body: <p>I am trying to get string value returned by API on success. I am getting success but I do not getting the required value in the response, but when I navigate to response-> body-> responseBody then it shows me that value but I am unable to get that value (please check screen shot for detail).</p>
  
  <pre><code>private void uploadImage(String imagePath) {
  
      try{
          showProgressDialogue();
          File file = new File(imagePath);
          RequestBody photoContent = RequestBody.create(MediaType.parse("multipart/form data"), file);
          MultipartBody.Part photo = MultipartBody.Part.createFormData("file",file.getName(),photoContent);
          //RequestBody description = RequestBody.create(MediaType.parse("description"),"abc");
          UploadService uploadService = APIClient.getClient().create(UploadService.class);
          Call call1 = uploadService.UploadOMRExamPaper(photo);
          call1.enqueue(new Callback&lt;Response&gt;() {
              @Override
              public void onResponse(Call&lt;Response&gt; call, Response&lt;Response&gt; response) {
                  progressBar.dismiss();
              }
  
              @Override
              public void onFailure(Call&lt;Response&gt; call, Throwable t) {
                  progressBar.dismiss();
                  Toast.makeText(getApplicationContext(), t.getMessage(),Toast.LENGTH_LONG).show();
              }
          });
  
      }catch (Exception e){
          progressBar.dismiss();
          Toast.makeText(this, e.getMessage(),Toast.LENGTH_LONG).show();
      }
  
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Wka8E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wka8E.png" alt="enter image description here"></a></p>