title: I'm developing asp .net Web API to use it in my Android app,
body: <p>I'm developing restful web service using asp.net Web API to use it in my Android app.</p>
  
  <p>and here what I get when I run my API </p>
  
  <pre><code>[
    {
      "id": 41,
      "firstName": "ahmed",
      "lastName": "jallad",
      "gender": "male",
      "salary": 6000,
      "img": "C:\\Users\\ahmed\\Desktop\\hi.png"
    },
    {
      "id": 46,
      "firstName": "ali",
      "lastName": "ali",
      "gender": "male ",
      "salary": 5000,
      "img": "C:\\Users\\ahmed\\Desktop\\hi.png"
    },
    {
      "id": 47,
      "firstName": "wael",
      "lastName": "wael",
      "gender": "male",
      "salary": 6000,
      "img": "C:\\Users\\ahmed\\Desktop\\hi.png"
    },
    {
      "id": 48,
      "firstName": "sara",
      "lastName": "sara",
      "gender": "female",
      "salary": 5000,
      "img": "C:\\Users\\ahmed\\Desktop\\hi.png"
    },
    {
      "id": 49,
      "firstName": null,
      "lastName": null,
      "gender": null,
      "salary": null,
      "img": "C:\\Users\\ahmed\\Desktop\\hi.png"
    }
  ]
  </code></pre>
  
  <p>I'm storing the path of the image in SQL database, and here is .net code </p>
  
  <pre><code>public HttpResponseMessage Get(string gender = "ALL")
      {
          using (EmployeeDBEntities entities = new EmployeeDBEntities())
          {
              int a = 0;
              switch (gender.ToLower())
              {
                  case "all":
  
                      return Request.CreateResponse(HttpStatusCode.OK, entities.Employees.ToList());
                  case "male":
                      return Request.CreateResponse(HttpStatusCode.OK, entities.Employees.Where(e =&gt; e.Gender.ToLower() == "male").ToList());
                  case "female":
                      return Request.CreateResponse(HttpStatusCode.OK, entities.Employees.Where(e =&gt; e.Gender.ToLower() == "female").ToList());
                  default:
                      return Request.CreateErrorResponse(HttpStatusCode.BadRequest, "value for gender must be Male, Femle or ALL. " + gender + " is not valid");
              }
          }
      }
  </code></pre>
  
  <p>my question is how can open the image from its path when I call from an android application?</p>
  
  <p>thanks in advance </p>