ASP.NET Core Web API byte[] issues - C#