Search found 837 matches

by Tom
Tue Apr 20, 2021 7:34 am
Forum: Xbase++ 2.0
Topic: Convert PDF to Base64
Replies: 8
Views: 70

Re: Convert PDF to Base64

Hi, Pedro.

See Attachment. Result of xbBase64Encode(FileStr("FATURA_FT_1_768.pdf")).
by Tom
Tue Apr 20, 2021 4:44 am
Forum: Xbase++ 2.0
Topic: Convert PDF to Base64
Replies: 8
Views: 70

Re: Convert PDF to Base64

Or use the functions from Xb2.Net.

Code: Select all

cBase64 := xbBase64Encode(FileStr(cFileName))
by Tom
Sun Apr 18, 2021 10:22 pm
Forum: Xbase++ 2.0
Topic: Convert PDF to Base64
Replies: 8
Views: 70

Re: Convert PDF to Base64

Load the File (Memoread, FileStr) as a binary string, apply a conversion function (xbBase64Encode from Xb2.Net, Xbase++ has a function aswell) to that string, that's it.
by Tom
Tue Apr 13, 2021 4:51 am
Forum: eXpress++ Support
Topic: Unable to recompile _dcgetbx in Build 2.00.1392
Replies: 7
Views: 89

Re: Unable to recompile _dcgetbx in Build 2.00.1392

Build 1400 is just released and fixes this problem.
by Tom
Thu Apr 08, 2021 8:09 am
Forum: eXpress++ Support
Topic: Unable to recompile _dcgetbx in Build 2.00.1392
Replies: 7
Views: 89

Re: Unable to recompile _dcgetbx in Build 2.00.1392

There is a workaround mentioned in the PDR: https://www.alaska-software.com/scripts ... PDRID=7394

The problem is caused by the preprocessor.
by Tom
Fri Mar 26, 2021 7:12 am
Forum: Xbase++ 2.0
Topic: How to Calculate the Hash of a PDF File
Replies: 5
Views: 195

Re: How to Calculate the Hash of a PDF File

@Pedro: I prefer FileStr(), but, yeah, this is the way to get the binary string to create the hash from.

@Roger: I think since two, three years, but, nowadays, time seems to go by faster in reality than in my memory.
Edit: Introduced in 2.00.1271, whenever that was.
by Tom
Fri Mar 26, 2021 4:49 am
Forum: Xbase++ 2.0
Topic: How to Calculate the Hash of a PDF File
Replies: 5
Views: 195

Re: How to Calculate the Hash of a PDF File

Use

Code: Select all

Char2Hash(<cStream>)
and set

Code: Select all

SET HASH TO MD5
before.
by Tom
Thu Mar 11, 2021 1:16 am
Forum: eXpress++ Support
Topic: RTF to HTML
Replies: 4
Views: 271

Re: RTF to HTML

by Tom
Wed Mar 10, 2021 11:15 pm
Forum: eXpress++ Support
Topic: RTF to HTML
Replies: 4
Views: 271

Re: RTF to HTML

TX TextControl can do this. Load any format, save to any format. And it's a very good text processor, which we use as a MLE-replacement.

https://www.textcontrol.com/