Hi!
I am an electronic archivist and I have recently tried to use BaseX to unzip files in an archive. The two main lines I have used are:
let $archive := file:read-binary(xquery:eval($filepath-corrected) return archive:extract-to(xquery:eval($dir_corrected), $archive)
The variables $dir_corrected and $archive are defined earlier in the code. But I get the error message 'malformed input off : 10, length : 1' , indicating that there is an issue with the input data being processed.
Do you know what can cause this problem? And do you know of a possible work - around?
Med vennlig hilsen
Thomas Berge Grythe Rådgiver Innlandet Fylkesarkiv/IKA Opplandene
Telefon: 48 99 47 85 E-post: thogry@innlandetfylke.nomailto:thogry@innlandetfylke.no
[cid:cb942b57-4e06-4d32-b529-cd07173c2993]
Innlandet fylkeskommune Telefon: 62 00 08 80 www.innlandetfylke.nohttps://www.innlandetfylke.no/