I have some binaries (.adb) that is created in FireDAC Project, but i want to read the data in python, is there any documentation on how to read this format? I know it is a proprietary format, but the only way i consume the data is using Delphi?
Asked
Active
Viewed 148 times
0
-
Why not just get FireDAC to load the file then write it out to an XML file? – MartynA Jun 29 '20 at 20:04
-
I'm python developer and i have zero experience in Delphi/Pascal, i only need the read the data, but you suggest create a program that i pass the adb file and then output the format that i need? So then i can call on my python program? – Gaspar Jun 29 '20 at 20:06
-
Do you have the Delphi app that creates the .adb files? – Olivier Jun 29 '20 at 20:21
-
No, i only have the .adb, i managed to open them in C ++ Builder, is even possible to export to other formats. – Gaspar Jun 29 '20 at 20:24
-
Unfortunately, there is no console application that performs this type of conversion. – Gaspar Jun 29 '20 at 20:25
-
Basically you need a [`TFDMemTable`](http://docwiki.embarcadero.com/Libraries/Rio/en/FireDAC.Comp.Client.TFDMemTable) object, call [`LoadFromFile()`](http://docwiki.embarcadero.com/Libraries/Rio/en/FireDAC.Comp.DataSet.TFDDataSet.LoadFromFile) on it, then [`SaveToFile()`](http://docwiki.embarcadero.com/Libraries/Rio/en/FireDAC.Comp.DataSet.TFDDataSet.SaveToFile). – Olivier Jun 29 '20 at 20:37
-
See [this page](http://docwiki.embarcadero.com/CodeExamples/Rio/en/FireDAC.TFDMemTable.Main_Sample) and the associated [sample project](https://github.com/Embarcadero/RADStudio10.3Demos/tree/master/Object%20Pascal/Database/FireDAC/Samples/Comp%20Layer/TFDMemTable/Main). – Olivier Jun 29 '20 at 20:37