我试图将图像上传到我的PostgreSQL数据库中。
首先,我在运行时从计算机上以SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/nino_new/nino
* * * * * sh /root/nino_new/nino/backup.sh
的形式获取了图像。
我想知道:
我应该在PostgreSQL数据库中设置哪种数据类型(让我们说字段const routes = [
{
path: "/dashboard/profile",
name: "DashboardProfile",
component: DashboardProfile,
props:{show:false}
},
];
),以便它接受并存储来自我的Web应用程序的Uint8List
数据?
我是否可以创建表以接受图像,如下所示:
imagedata
我还可以如下输入数据吗?
Uint8List
其中CREATE TABLE imagetable(
id serial primary key not null,
imagedata [datatype?],
);
是我的Web应用程序中的INSERT into imagetable(imagedata)
values (imagedataWebApp)
数据。