You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I would like to ask you about the data format for request params
For entity_name: does it need to include path to the file or pure the file name? If I have a file name 1.jpg, and it has a root path of train.zip/class_1, should I parse 1.jpg or train.zip/class_1/1.jpg to the filed entity_name?
For the entity_content field, I used base64.b64encode(im.tobytes()).decode('utf-8') whereas im is an Image.open() object. I can see the long string of binary code it gives, however, as there is a limitation in the documentation and I didn't check the size, will it work?
I saw that you did a conversion for the request body through bytes(json.dumps(req),"utf8"), will it work if I just parse a normal dictionary? (Currently I parse it as just a dictionary, it returns response code 200, however it is super slow, and it has the connection timeout issue after sending 107 requests only. Thus, I am not sure if I am parsing the wrong format as the request body)
If you couldn't understand Chinese shown in the above images, please let me know and I apologize for the inconvenience caused. Looking forward to hearing from you soon!
The text was updated successfully, but these errors were encountered:
Hi! I would like to ask you about the data format for request
params
For
entity_name
: does it need to include path to the file or pure the file name? If I have a file name1.jpg
, and it has a root path oftrain.zip/class_1
, should I parse1.jpg
ortrain.zip/class_1/1.jpg
to the filedentity_name
?For the
entity_content
field, I usedbase64.b64encode(im.tobytes()).decode('utf-8')
whereasim
is anImage.open()
object. I can see the long string of binary code it gives, however, as there is a limitation in the documentation and I didn't check the size, will it work?I saw that you did a conversion for the request body through
bytes(json.dumps(req),"utf8")
, will it work if I just parse a normal dictionary? (Currently I parse it as just a dictionary, it returns response code 200, however it is super slow, and it has the connection timeout issue after sending 107 requests only. Thus, I am not sure if I am parsing the wrong format as the request body)If you couldn't understand Chinese shown in the above images, please let me know and I apologize for the inconvenience caused. Looking forward to hearing from you soon!
The text was updated successfully, but these errors were encountered: