fill base64 buffer
send URLs on empty doc queries