1-й API, который возвращает byte[]
Код: Выделить всё
[HttpPost]
[Route("compile")]
public async Task GetData([FromBody] Data myDto)
{
var data = await _myservice.Transform(myDto);
return data;
}
Код: Выделить всё
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)
Подробнее здесь: https://stackoverflow.com/questions/760 ... tioninline
Мобильная версия