Quantcast
Channel: How to receive a byte array and json in a Web API Controller - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Nkosi for How to receive a byte array and json in a Web API Controller

The framework can only bind one item from the body so what you are trying to attempt would not work. Instead, read the request content just as you sent it and extract the parts....

View Article



How to receive a byte array and json in a Web API Controller

I need to receive a json object together with a byte array in a c# Web API application.This is how I am sending the data:public bool SendMedia(string method, Media media){ string filePath =...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images