Hide Your Face

FREE
By Akihiro Inui | Updated месяц назад | Artificial Intelligence/Machine Learning
Popularity

0.2 / 10

Latency

113ms

Service Level

75%

Health Check

N/A

Back to All Discussions

how to use picture in java

Rapid account: D 0542397 G Bm GDXC Zhpt
d0542397-GBmGDXCZhpt
3 года назад

I use in java but get error
HttpResponse<String> response = Unirest.post(“https://hide-your-face.p.rapidapi.com/mosaic”)
.header(“content-type”, “multipart/form-data; boundary=—011000010111000001101001”)
.header(“x-rapidapi-host”, “hide-your-face.p.rapidapi.com”)
.header(“x-rapidapi-key”, “1e5dc68417ssh2ced71s04148d7fp1b7a68jsd090e5c3745ba”)
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=“image_file”\r\n\r\n\r\n-----011000010111000001101001–\r\n\r\n")
.asString();

result:
{

“map”: {
“detail”: {
“myArrayList”: [
{
“map”: {
“msg”: “field required”,
“loc”: {
“myArrayList”: [
“body”,
“image_file”
]
},
“type”: “value_error.missing”
}
}
]
}
}

Rapid account: Inuinana
inuinana Commented 3 года назад

Hi, I think you are not sending the imagefile in the correct format. I saw some response with the status code 200 called by your user account, so I assume you figured out? I’m considering updating it to make the blur effect stronger. Let me know what you think 😃

Join in the discussion - add comment below:

Login / Signup to post new comments