We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was trying to consume lambda API in my application where i have to upload a file:
.field("files", new MemoryStream("")) is not supported in Unirest-net.
HttpResponse response = Unirest.post("https://lambda-face-recognition.p.mashape.com/album_train") .header("X-Mashape-Authorization", "wdfwerwerjjrlwernwlkrwlkrnewlrn") .field("album", "") .field("albumkey", "") .field("entryid", "") .field("files", new MemoryStream("")) .field("urls", "") .asJson();
Please resolve this issue by overloading the field method to (string, and stream)
The text was updated successfully, but these errors were encountered:
Piyush what error were you getting?
Sorry, something went wrong.
In Unirest-net, there is no field method takes string and Stream as a input parameters. in Unirest-net we have following field overloaded methods:
I believe this has already been fixed - added public HttpRequest field(string name, byte[] data) method for uploading file
No branches or pull requests
I was trying to consume lambda API in my application where i have to upload a file:
.field("files", new MemoryStream("")) is not supported in Unirest-net.
HttpResponse response = Unirest.post("https://lambda-face-recognition.p.mashape.com/album_train")
.header("X-Mashape-Authorization", "wdfwerwerjjrlwernwlkrwlkrnewlrn")
.field("album", "")
.field("albumkey", "")
.field("entryid", "")
.field("files", new MemoryStream(""))
.field("urls", "")
.asJson();
Please resolve this issue by overloading the field method to (string, and stream)
The text was updated successfully, but these errors were encountered: