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

BLOB Field in Activerecord #315

Closed
budisatya opened this issue Dec 21, 2019 · 5 comments
Closed

BLOB Field in Activerecord #315

budisatya opened this issue Dec 21, 2019 · 5 comments
Labels
as-designed The behaviour is correct/expected

Comments

@budisatya
Copy link

i used firebird 2.5.9 and DMVC Boron,
i create blob field in firebird ex:
create tableX (
id integer not null,
notes blob sub_type text
);
in active record entity class i use
Notes : String
whene i call rest from client, if blob field is empty, there no error, if blob field has any value, it generate error
"Exception Class Name : EEncodingError
Exception Message : No mapping for the Unicode character exists in the target multi-byte code page"
How to fix this problem?
or any oher idea to contain/load blob field in active record?

@danieleteti
Copy link
Owner

What is the blob encoding?

@budisatya
Copy link
Author

budisatya commented Dec 23, 2019

blob encoding use default / none
on firebird-2.5.9
CREATE TABLE "TEST"
(
"ID" INTEGER NOT NULL,
"NOTES" BLOB SUB_TYPE TEXT SEGMENT SIZE 80
);

@budisatya
Copy link
Author

fdb
setting in delphi FDConnection

@danieleteti
Copy link
Owner

I cannot reproduce the issue - in all the samples the blob textual field is correctly handled. I've updated the sample samples\activerecord_showcase just to show you the correct way to do it.
IMHO the problem is in your characterset. As a general advice, is way better to be explicit about the character set used by the database and the tables fields.

@danieleteti danieleteti added the as-designed The behaviour is correct/expected label Dec 23, 2019
@budisatya
Copy link
Author

oke, i'll check samples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
as-designed The behaviour is correct/expected
Projects
None yet
Development

No branches or pull requests

2 participants