【发布时间】:2018-06-16 20:05:45
【问题描述】:
该应用程序是关于使用 HTML 从用户那里获取图像,通过 API 发送,然后将其添加到数据库中,并将其保存为 bytea。
问题是我无法在需要时显示图像。
主页是我需要显示图像的地方。
axios.get('http://localhost:3333/api/getAllHairdressers').then((result)=>{
console.log(result.data);
this.setState({data:result.data})
})
}
log data.result 是
counter : 1 cutprice : null description : null id : 32 image : {type: “缓冲区”,数据:数组(438763)}位置:空密码:“123” salname : null 用户名 : "ttt"
那么我该如何展示这张图片呢? 我需要使用什么?
【问题讨论】:
-
6 个月后真是一个惊喜!
标签: javascript arrays postgresql reactjs