I am trying to fetching records from oracle database table using web api from country mater table having columns "CountryName", "CountryCode" and "country image" (blob). I am not able to include blob column along with other data:
Current Code:
// Data Access (Repository) layer for fetching data using Dapper
public override IQueryable<Country> GetCountryList()
{
string query = "select CountryName, CountryCode from Country";
connection.Open();
return connection.Query<Country>(query).AsQueryable();
}
// Web API controller
public IHttpActionResult Get()
{
var JsonResponse = ;
return Ok(GetCountryList().ToList());
}
Expected Result:
I want to include CountryImage column which is BLOB type along with existing columns (query below for reference). i.e. "select CountryName, CountryCode, CountryImage from Country";
I will be consuming this data in my Angular application.