我有一个存储过程,其语法如下:
PROCEDURE INSERT_ENROLL_DATA (pCustNo IN VARCHAR2,
pData1 IN CLOB,
pData2 IN CLOB,
pLength IN NUMBER,
pSerial IN NUMBER,
pUser IN VARCHAR2,
pFingerData IN BLOB)
IS
vFingerData CLOB := pData1 || pData2;
vErrorDesc VARCHAR2 (1024);
BEGIN
INSERT INTO BIOTPL.FP_BIOMETRIC_DATA (CUST_NO,
SERIAL_NO,
BIO_DATA,
DATA_LENGTH,
CREATE_BY,
CREATE_DATE,
BIODATA2)
VALUES (pCustNo,
pSerial,
vFingerData,
pLength,
pUser,
SYSDATE,
pFingerData);
EXCEPTION
WHEN OTHERS
THEN
vErrorDesc := SQLERRM;
INSERT_ENROLL_LOG (pCustNo => pCustNo,
pSerial => pSerial,
pProcess => 'INSERT FINGER BINARY DATA',
pErrorDesc => vErrorDesc,
pUser => pUser);
END;
我通过以下语法调用此存储过程:
strSQL = "PKG_BIOMETRIC_PROCESS.INSERT_ENROLL_DATA(3455,'" & strVar1 & "','" & strVar2& "',"&length_of_data&"," & serial_no & ",'admin01',null )"
Set objExec = Conn.Execute(strSQL)
此sql在blob命令中成功插入空数据。但是当我尝试在blob数据中插入一个字节数组时,如下面的语法:
strSQL = "PKG_BIOMETRIC_PROCESS.INSERT_ENROLL_DATA(3455,'" & strVar1 & "','" & strVar2& "',"&length_of_data&"," & serial_no & ",'admin01','" & decodedString& "')"
' Response.write(strSQL&"<br>")
Set objExec = Conn.Execute(strSQL)
我收到此错误:
500 - 内部服务器错误。
您正在查找的资源存在问题,无法显示。
如何从经典的asp传递字节数组到blob列?如何将经典的asp中的字节数组数据传递给存储过程?请帮我 。