NetTalk Central

Author Topic: NT12 BLOB - Error  (Read 3705 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
NT12 BLOB - Error
« on: December 21, 2020, 11:02:58 AM »
Hi Bruce

I am very excited that it has become easy to use BLOB for text.
But when I use it with MSSQL I get the following error:

Invalid character value for cast specification (22005).

Any idea?

Regards Niels

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT12 BLOB - Error
« Reply #1 on: December 21, 2020, 10:00:25 PM »
Hi Niels,

I'm not a SQL expert, but I'm guessing this has to do with the declaration of your blob in the database, and the dictionary. Perhaps let us know how the field is declared in the dictionary, and in the SQL table, and whether it is binary in either, or both, places?

the code in NetTalk is using the database driver, so there's no special "blob" handling on my side - I'm just using normal Clarion blob behaviors.

Cheers
Bruce

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: NT12 BLOB - Error
« Reply #2 on: December 22, 2020, 08:30:00 AM »
Hi Bruce

In Clarion it's defined as a non binary blob. And ends up in SQL as a binary image.
This is weird because when I work with jFiles2 and blobs I have no issues at all.
Well, I have to dig a little deeper into what it's going on and what I'm doing wrong.

/Niels


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: NT12 BLOB - Error
« Reply #3 on: December 23, 2020, 09:26:22 PM »
Perhaps set the clarion side to Binary as well?

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: NT12 BLOB - Error
« Reply #4 on: December 27, 2020, 10:23:02 AM »
Yes. Defining it as binary works.
The only thing I didn't try....

Thanks!