B
behdad
Hello folks,
i am trying to update a table in oracle database which is BLOB type in
vb here is my code:
Dim asciiString As String = TextBox1.Text
Dim ascii As Encoding = Encoding.ASCII
Dim baMsgIn As Byte() = ascii.GetBytes(asciiString)
Dim myQuery As String = ""
Dim oradb As String = */CONNECTION STRING/*
Dim OraConn As OracleConnection = New OracleConnection(oradb)
OraConn.Open()
Dim OraComd As OracleCommand
myQuery = "update pb_general_param set b_intro=:BlobParameter
where n_id=1"
Dim blobParameter As OracleParameter = New OracleParameter()
blobParameter.OracleDbType = OracleDbType.Blob
blobParameter.ParameterName = "BlobParameter"
blobParameter.Value = baMsgIn
OraComd = New OracleCommand(myQuery, OraConn)
OraComd.Parameters.Add(blobParameter)
OraComd.ExecuteNonQuery()
OraConn.Close()
but once i run this code it goes to "NOT RESPONDING" status and never
ends. do you have any idea what i should do about it?
i am trying to update a table in oracle database which is BLOB type in
vb here is my code:
Dim asciiString As String = TextBox1.Text
Dim ascii As Encoding = Encoding.ASCII
Dim baMsgIn As Byte() = ascii.GetBytes(asciiString)
Dim myQuery As String = ""
Dim oradb As String = */CONNECTION STRING/*
Dim OraConn As OracleConnection = New OracleConnection(oradb)
OraConn.Open()
Dim OraComd As OracleCommand
myQuery = "update pb_general_param set b_intro=:BlobParameter
where n_id=1"
Dim blobParameter As OracleParameter = New OracleParameter()
blobParameter.OracleDbType = OracleDbType.Blob
blobParameter.ParameterName = "BlobParameter"
blobParameter.Value = baMsgIn
OraComd = New OracleCommand(myQuery, OraConn)
OraComd.Parameters.Add(blobParameter)
OraComd.ExecuteNonQuery()
OraConn.Close()
but once i run this code it goes to "NOT RESPONDING" status and never
ends. do you have any idea what i should do about it?