Bulk-Operations icon indicating copy to clipboard operation
Bulk-Operations copied to clipboard

Error with BLOB column

Open mpriala-code opened this issue 2 months ago • 4 comments

When performing a BulkInsert into a MySQL (8.X and 9.3) table with a BLOB column (SNAPSHOT) from a VB.NET Byte() column, the operation fails with the error: Cannot convert string '\xFF\xD8\xFF\xE0\x00\x10...' from binary to utf8mb4

  • Z.BulkOperations v2.13.15.
  • Table Charset: utf8mb4
  • Table Collation: utf8mb4_0900_ai_ci
  • The issue occurs even if the Byte() array contains valid BLOB data.
  • The LogDump: -- @0_16: (Type = String, Size = 16777215)

Thanks for the help. Kind Regards Marin

mpriala-code avatar Oct 23 '25 14:10 mpriala-code

Hello @mpriala-code,

Could you try the latest version and let us know if this issue still occurs?

The version you’re using dates back to 2018. Many issues have been fixed over the past seven years, and this one is likely already resolved if it’s the one we think it is.

Best Regards,

Jon

JonathanMagnan avatar Oct 24 '25 12:10 JonathanMagnan

Yes, this is the result:

Image
  • Z.BulkOperations v5.2.4.
  • The LogDump: -- @0_16: (Type = Object, Size = 65535)
  • App in 64

Best regards. Marin.

mpriala-code avatar Oct 24 '25 13:10 mpriala-code

Hello @mpriala-code,

Could you create a small runnable project that reproduces the issue? It doesn’t have to be your actual project—just a new solution with the minimum code. If possible, please include your my.ini (or relevant DB configuration), as that could help.

My developer tested both of your reported issues, and both worked correctly on our side.

You can send the project privately to [email protected].

Best Regards,

Jon

JonathanMagnan avatar Oct 27 '25 13:10 JonathanMagnan

Hello @JonathanMagnan

Thanks for the quick reply. We've just isolated the issue and sent a sample code project to the e-mail you provided.

Best regards, Marin

mpriala-code avatar Oct 29 '25 10:10 mpriala-code