C
C#2w ago
Mihneas22

✅ Image Postman

what data type does postman send back with this image? I am trying to do a service to show the image on blazor, but I can't find the data type that the api is sending back to the user.
No description
9 Replies
Angius
Angius2w ago
See the headers Probably image/<format>
Mihneas22
Mihneas22OP2w ago
yeah is image/png so in code
Mihneas22
Mihneas22OP2w ago
No description
Mihneas22
Mihneas22OP2w ago
what do I put in the ReadFromJsonAsync argument
Angius
Angius2w ago
Well it's not json
Mihneas22
Mihneas22OP2w ago
:harold:
Angius
Angius2w ago
You could prolly read it as a byte array for example So request.Content.ReadAsByteArrayAsync()
Mihneas22
Mihneas22OP2w ago
I think it worked I am not getting an error Sometimes, I think I am the most stupid being it worked finnaly thank you :Ok:
Angius
Angius2w ago
Anytime :Ok:

Did you find this page helpful?