albfernandez / javadbf

Java library for reading and writing Xbase (dBase/DBF) files.
GNU Lesser General Public License v3.0
224 stars 98 forks source link

support DBC files #42

Closed ialek36 closed 7 years ago

ialek36 commented 7 years ago

Quick question. Do you support DBC files? It should be just a DBF file with the same header, but the data is compressed using DEFLATE?

albfernandez commented 7 years ago

Not at the moment. If the format is as you say, then it should be easy to implement. Do you have a sample file (or link)? Is DBC an "official" FoxPro filetype or is a custom format? Thanks

ialek36 commented 7 years ago

I'm not sure how official it is. I know this format is used by Brazilian Government.

Here's the link to a C implementation of the same. There're a couple of sample files attached there. I used your project to read the file from the project and some of the Brazilian files. The code would read the header correctly, but wouldn't be able to parse the actual data. The later is expected as your code is not decompressing the data.

https://github.com/eaglebh/blast-dbf