add blob conversion functions