I have the following controller method:
[HttpPost]
[Route("SomeRoute")]
public byte[] MyMethod([FromBody] string ID)
{
byte[] mybytearray = db.get
response.Content.ReadAsAsync
I want to make it clear that ReadAsAsync and ReadAsByteArrayAsync() do NOT act the same.
ReadAsByteArrayAsync() turns everything into a Base64 Byte Array. It doesn't get the non-Base64 byte[] from response.Content but ReadAsAsync does