I am trying to accept a byte array in my API request:
class X { public byte[] Test { get; set; }}
class X { public byte[] Test { get; set; }}
Swagger is used to test the API. When I launch the project and open it in my browser I see that this property accepts a string instead of a byte[]. Googling this issue did not gave much information besides this SO-thread
I am creating an ASP.NET Core 6 Web API. I did enable Swagger and would like to test an endpoint with input body of datatype byte[]. [HttpPost(Name = "publishdata")] public IActionResult ...
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
C
C#
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.