哪种数据类型用于在PostgreSQL数据库中存储图像的Uint8List数据

时间:2020-10-28 09:06:45

标签: postgresql flutter

我试图将图像上传到我的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 的形式获取了图像。

我想知道:

  1. 我应该在PostgreSQL数据库中设置哪种数据类型(让我们说字段const routes = [ { path: "/dashboard/profile", name: "DashboardProfile", component: DashboardProfile, props:{show:false} }, ]; ),以便它接受并存储来自我的Web应用程序的Uint8List数据?

  2. 我是否可以创建表以接受图像,如下所示:

    imagedata
  3. 我还可以如下输入数据吗?

    Uint8List

    其中CREATE TABLE imagetable( id serial primary key not null, imagedata [datatype?], ); 是我的Web应用程序中的INSERT into imagetable(imagedata) values (imagedataWebApp) 数据。

0 个答案:

没有答案