【发布时间】:2020-11-05 15:00:02
【问题描述】:
我一直在尝试通过邮递员在报告门户上发布带有图像的日志。图片确实上传了,但显示为空白,您无法真正看到图片。
我正在以 base64 格式在请求正文中添加图像。这是身体:
--HereGoes
Content-Disposition: form-data; name="json_request_part"
Content-Type: application/json
[
{
"file": {
"name": "test.png"
},
"launchUuid": "a02bf1c3-b5c0-4209-b57a-34a48deaf266",
"itemId": "287e26f1-7386-4ce6-b61d-c7c14eb6129d",
"itemUuid": "287e26f1-7386-4ce6-b61d-c7c14eb6129d",
"level": "FATAL",
"message": "custom",
"uuid": "90",
"time": "2019-11-15T14:35:55.006Z"
}
]
--HereGoes
Content-Disposition: form-data; name="file"; filename="test.png"
Content-Type: image/png
Content-Transfer-Encoding: base64
<image in base64>
--HereGoes--
和标题:
我不确定为什么图片不会显示。身体有什么问题吗?如何让图像显示为:
非常感谢您的帮助。谢谢!
【问题讨论】:
标签: postman multipartform-data reportportal