On 12/11/2024 10:27, Grythe, Thomas Berge wrote:
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?
What do you need those xquery:eval calls for?