C
C#2mo 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
Angius2mo ago
See the headers Probably image/<format>
Mihneas22
Mihneas22OP2mo ago
yeah is image/png so in code
Mihneas22
Mihneas22OP2mo ago
No description
Mihneas22
Mihneas22OP2mo ago
what do I put in the ReadFromJsonAsync argument
Angius
Angius2mo ago
Well it's not json
Mihneas22
Mihneas22OP2mo ago
:harold:
Angius
Angius2mo ago
You could prolly read it as a byte array for example So request.Content.ReadAsByteArrayAsync()
Mihneas22
Mihneas22OP2mo 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
Angius2mo ago
Anytime :Ok:

Did you find this page helpful?