Hello Lucas,
First of all,
thanks a lot for helping me, even if the given example is more an hydra than a single blob insertion example. Do not take it bad, but I use only code that I fully understand, this way I learn to do it by myself, going from simple to more complex. Here, I had to understand WHY my code was not working.
Beside this, I did not find any convincing example of such an insertion in the whole forum, for the very reason that it is (seems to me) impossible, at least this way.
Let me explain :
When I do "Sql="INSERT INTO ... VALUES('aaaa','bbb','ccc', OBJECT), the compiler tries to convert it in... string : whatever you may try...
Even if you declare a var as object and pass it to the query, the damn thing will try to convert it in string. So we got a query with the ID of the object... as string. Not funny.
The only way is to use SqlDb.ExecNonQuery2 : and this way, the example becomes really simple.
SQL="INSERT INTO [Users]([Key],[DisplayName],[Phone],[Picture]) VALUES('KEY','DISPLAYNAME','PHONE',?)"
SqlDb.ExecNonQuery2(SQL,Array As Object(Ct.Picture))
(where ct.picture is an array of byte)
This one works.
Again, thank you for your patience and kindness,
Ciao,
ps : was that YOU on the photo ?
