how i can pass image as argument in python request along with url as 2nd argument?
问题 Hi i want to pass image from view to api using request,with url. here is my code: def processImage(request): image=request.FILES['image'] params = {'image': image } url='http://127.0.0.1:8000/idealweight/' outPut_Data=requests.post(url,params=params) //i also tried this img=image and then passed: outPut_Data=requests.post(url,img) but did not worked.and this gives error in imgFinalPro few arguments passed. I am calling this imgFinalPro function And here I want to receive the image: def