Hasn't happened before, so it obviously is all legal guesswork. My guess is that the Supremacy clause and the Constitutionally-prescribed duties of the President - which would be impossible to execute from prison -- would take precedent over any criminal conviction.
Though I don't believe for a second he could pardon himself.