We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d61ea7 commit a071e7dCopy full SHA for a071e7d
twocaptcha/solver.py
@@ -438,7 +438,7 @@ def get_method(self, file):
438
img_resp = requests.get(file)
439
if img_resp.status_code != 200:
440
raise ValidationException(f'File could not be downloaded from url: {file}')
441
- return {'method': 'base64', 'body': b64encode(img_resp.content)}
+ return {'method': 'base64', 'body': b64encode(img_resp.content).decode('utf-8')}
442
443
if not os.path.exists(file):
444
raise ValidationException(f'File not found: {file}')
0 commit comments