sfa-siard / SiardCmd

SIARD Suite - SiardCmd
Other
9 stars 5 forks source link

Correctly handle MimeType detection for cells and fields #38

Closed mburri closed 5 months ago

mburri commented 5 months ago

Somehow, the nations db (ms access) seems to store binary data (files) in an array, that is handled as "Fields" in the siard-api.

This lead to ClassCastException when detecting the mime type.

Mime Type detections now works for both: Cells and Fields.

But!

Binary data in fields cannot be opened from the SIARD Suite and the mime type (while it is present in the archive) is not shown in the columns meta data!

We can think of 3 possible reasons:

This PR fixes the class cast exception when access databases with blob columns are archived