Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing into BLOB different behavior between 2.1 and 2.5 [DNET273] #284

Closed
firebird-automations opened this issue Sep 14, 2009 · 3 comments

Comments

@firebird-automations
Copy link

Submitted by: Vincent Bergeron (bigbabeloua)

Here's my table DDL:

CREATE TABLE MYTABLE (
REMARQUE DOM_MEMO /* DOM_MEMO = BLOB SUB_TYPE 1 SEGMENT SIZE 80 */
);

Here's my C#⁠ code:

byte[] blob = new byte[length];
//Fill blob content here
cmd.Parameters.Add(paramName, FbDbType.Binary).Value = blob;
cmd.ExecuteNonQuery();

Using 2.1.0.0 client, it's working.

Using 2.5.0.0 client, I get an error: Cannot convert from System.Byte[] to System.String.

Commits: df53bf0

@firebird-automations
Copy link
Author

Commented by: Vincent Bergeron (bigbabeloua)

(removed comment, because I thought It was the same issue as another one, but the "problem" is different)

@firebird-automations
Copy link
Author

Commented by: Konstantin Dombrugov (abracadabra)

for now you cannot pass byte arrays to text blobs. you should explicitly convert it to string
see DNET249

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5.2 [ 10370 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants