notAI-tech / NudeNet

Lightweight nudity detection
https://nudenet.notai.tech/
GNU Affero General Public License v3.0
1.72k stars 334 forks source link

Docker curl multipart/form-data not possible with every Language #153

Open ItsDedSec00 opened 1 month ago

ItsDedSec00 commented 1 month ago

Is there any way to just use the normal file post command instead of multi file post? I is not possible for some languages to use the multi part file post and I only need to upload one file at once.

ItsDedSec00 commented 1 month ago

Tried it with Base64 encoded image but that don't work.

bedapudi6788 commented 1 month ago

Is there any way to just use the normal file post command instead of multi file post? I is not possible for some languages to use the multi part file post and I only need to upload one file at once.

Which language are you trying from? I am sure from all programming languages this can be done.

ibnux commented 1 month ago

Encoded Type Multipart file is available in every language, it's a basic http connection

ItsDedSec00 commented 3 weeks ago

Is there any way to just use the normal file post command instead of multi file post? I is not possible for some languages to use the multi part file post and I only need to upload one file at once.

Which language are you trying from? I am sure from all programming languages this can be done.

I'm using AppInventor, not really a porgramming language. I now use v2 with the Base64 http POST and docker image. Is there any way to use the same Base64 methode with the v3 model? AppInvetor can't use Multipart.

bedapudi6788 commented 3 weeks ago

@ItsDedSec00 you can write a http server in the middle of fastdeploy docker and appinventor which accepts the base64 and does multiform internally.

ItsDedSec00 commented 3 weeks ago

@ItsDedSec00 you can write a http server in the middle of fastdeploy docker and appinventor which accepts the base64 and does multiform internally.

Thanks will try that. Do I Need to decode the Base64 for v3? Or can I just use the Base64 in the Multipart method?

bedapudi6788 commented 3 weeks ago

base64 is not supported at the moment.