【发布时间】:2013-03-06 05:59:23
【问题描述】:
就我而言,我想使用存储过程将图像存储到 Postgresql 数据库。我的数据库在服务器上。
我正在将图像转换为前端的字节数组。现在 O 需要知道如何将转换后的字节数组传递给存储过程。
我现在正在使用以下代码:
Dim xImgPath() As Byte = ConverttoByte(mPath)
Dim xQry As String = "select public.fn_employee(row(" & id &,"," & xImgPath &"))::public.employee
但是上面的代码不起作用,它只是在前端显示编译时错误。谁能告诉我如何将字节数组传递到 postgresql 中的存储过程中?
【问题讨论】:
-
包含字节数组的列的类型是什么?
-
@DavideBerra 列类型为 bytea
-
编译时错误说什么?
标签: database vb.net postgresql stored-procedures postgresql-9.1