hi i,m trying to get a varbinary record from a microsoft sql server.
Connection works ok,
but here is my problem
i got this error
com.microsoft.sqlserver.jdbc.SQLServerException: The conversion of the varchar value '02200000160' overflowed an int column.
he is my code
B4X:
rs = sql1.ExecQuery($"select * from XX where XXXX = ${XX}"$)
Log($"select * from FOTOS where Cedula = ${cedula}"$)
Log(rs.ColumnCount)
Do While rs.NextRow ----------> the error start here
Dim buffer() As Byte
buffer = rs.GetBlob("Imagen")
Loop
Need to know more information than that. What type is cedula in B4x and what type is Cedula in SQL Server? It is true that the value of 2200000160 is of greater size than the maximum value of an Int column in SQL server which is 2147483647 .