1. API, der Byte[] zurückgibt
Code: Select all
[HttpPost]
[Route("compile")]
public async Task GetData([FromBody] Data myDto)
{
var data = await _myservice.Transform(myDto);
return data;
}
Code: Select all
at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json,
ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
at System.Text.Json.Utf8JsonReader.ConsumeValue(Byte marker)
at System.Text.Json.Utf8JsonReader.ReadFirstToken(Byte first)
at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
at System.Text.Json.Utf8JsonReader.Read()
at System.Text.Json.Serialization.JsonConverter`1.ReadCore(
Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
Mobile version