Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/w/h/whiff-1.1/whiff/middleware/base64DataUrl.py   whiff(Download)
        page = stream.mystr(page)
        b64data = base64.b64encode(page)
        content_type = self.component_content_type()
        assert content_type is not None, "no content type for payload"
        url = "data:%s;base64,%s" % (content_type, b64data)