我可以使用Google Fusion Table的API插入图片吗?
我已插入普通数据并且没关系:
cols = ['title', 'comments', 'Location', 'Date', 'picture']
values = ['t1', 'c1', 'l1', 'd1', 'p1']
fusion.insertRow(cols, values)
但要插入图片,我发送如下:
img_blob = open('/home/mehdi/logo.png', 'rb').read()
cols = ['title', 'comments', 'Location', 'Date', 'picture']
values = ['t1', 'c1', 'l1', 'd1', img_blob]
fusion.insertRow(cols, values)
我得到413错误:
413: Your client issued a request that was too large. that’s all we know.
我已阅读Google Fusion Table API文档,但我没有看到任何关于它的说明。
答案 0 :(得分:0)
无需在Google Fusion Table中上传图片,因为您可以对其网址执行任何操作。
所以只需发送您的图片网址而不是自己。