I am successfully executing from the Windows CMD console the following instruction:
curl --user on:on --form "imgupload_front=@C:\Users\franc\Downloads\miau.jpg" --form code=8411916819976 --form imagefield=front --form user_id=id --form password=pass https://fr.openfoodfacts.org/cgi/product_image_upload.pl
I have added internet, internal and external storage permissions. Also: android:usesCleartextTraffic="true"
When I run it in android studio I change the image path to: Internal memory\DCIM\Screenshots\a.jpg
Is there a possibility to execute this instruction with java from android?