title: How to create download feature using ASP.NET Core 2.1 and React JS?
body: <p>I'm using ASP.NET Core and React JS. I'm newbie to this both platforms. I have used Axios for requesting data and getting response from server. But I have not requested images or any kind of file from server. This time I'm working on Download feature where user will click on button and can download desired file which is of .png, .jpg, .pdf format. I'm not understanding how can server will send data? I read, I needed to send base64 data which is converted from blob format. But not understanding how to request data from client and how server will serve desired file. In DB, I have stored only address of file e.g. /images/img1.jpg. This file actually resides in wwwroot/images folder. I have used <a href="https://www.npmjs.com/package/downloadjs" rel="nofollow noreferrer">downloadjs</a> for downloading which is working correctly but after downloading, that image is not readable as it does not have any content.</p>
  
  <p>Please anyone help me to implement this feature.</p>