public HttpResponseMessage Get() { HttpResponseMessage Response = new HttpResponseMessage(HttpStatusCode.OK); byte[] arr = Encoding.ASCII.GetBytes("Sreten"); FileSystemLoader loader = new FileSystemLoader(); arr = loader.GetMedia(66, 18); Response.Content = new ByteArrayContent(arr); Response.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream"); return(Response); }