#1 2025-10-28 12:58:44

anouri
Member
Registered: 2024-02-11
Posts: 128

How to remove \uFFF0 from base64encoded blob?

Hi everyone!
I am using react as front end.
Is there a way to create json without \uFFF0 char?

mormot documentation:

    // - BLOB field value is saved as Base64, in the '"\uFFF0base64encodedbinary"'
    // format and contains true BLOB data
    procedure ExecutePreparedAndFetchAllAsJson(Expanded: boolean;
      out Json: RawUtf8; ReturnedRowCount: PPtrInt = nil);

Last edited by anouri (2025-10-28 13:17:07)

Offline

#2 2025-10-28 13:45:13

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,251
Website

Re: How to remove \uFFF0 from base64encoded blob?

It can't yet be directly disabled.
In ExecutePreparedAndFetchAllAsJson / ColumnToJson, the "withmagic" parameter is forced to true.

Could you create an issue on GitHub referring to this forum thread?

Offline

#3 2025-10-29 07:02:50

anouri
Member
Registered: 2024-02-11
Posts: 128

Re: How to remove \uFFF0 from base64encoded blob?

Done!

Offline

Board footer

Powered by FluxBB