Estou gravando um arquivo ZIP num campo MEDIUMBLOB com sucesso. Entretanto, se o ZIP contiver um arquivo EXE, a gravação dá erro. Alguém sabe dizer o que pode ser?
Estou usando xHarbou com SQLRDD. O código abaixo é o que estou usando:
cComm := "INSERT INTO atualiza ( bin_atualiza ) VALUES ( '" + SR_EscapeString( cText, 3 ) + " ')"
oSql := SR_GetConnection()
nErr := oSql:Exec( cComm )
IF nErr != 0
SR_EndConnection( SQLCONNECTION )
RETURN( NIL )
ENDIF
Essa é a mensagem de erro que recebo:
Error description: Error SR_MYSQL/0 SQLExecDirect Error
(1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '¯·:3µOÇêئÓÕ‘&‡u% ÿxSf#Øözœ¤˜*¡tmË•Õ϶«C1
' at line 1 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '¯·:3µOÇêئÓÕ‘&‡u% ÿxSf#Øözœ¤˜*¡tmË•Õ϶«C1
' at line 1