parse a data uri into mime type and buffer