Type II flare continuum in the corona and solar wind