BaseXdb/basex — Issue #308: HTTP Module: binary content not correctly interpreted
Author: rosishadura
Created: 2011-12-08 22:20:49+00:00
State: open
Labels: bug

Example:

declare default element namespace "http://www.w3.org/1999/xhtml";
let $pngAddress := http:send-request(, 'http://docs.basex.org')[2]//img/@src[contains(.,'creativecommons')]/data()
let $bin := http:send-request(, $pngAddress)[2]
return file:write-binary("/home/test/test.png", $bin)

=> Problem: Content of test.png and of the original image differ. Reason: TextInput.content() must not be called in case of binary content.