The AsBinary() function converts a geometry from internal format into a BLOB containing the WKB value.
AsBinary()
BLOB
SELECT AsBinary(g) FROM geom;