On 09/09/2016 15:49, Holger Freyther wrote:
Right libdbi has encoding for "blob". tnt has written a _dbi_binary_quote in python in pysim. It might help you to write the unquote.
holger
Right, not perfect, but it'll do:
def _dbi_binary_unquote(s): e = ord(s[0]) out = [] for c in s: x = (256 + ord(c) + e) % 256 if x < 256: out.append(chr(x)) return ''.join(out)
Any clues on classmark analysis?
Thanks.