By radiation: energy is travels in the form of electromagnetic waves, but they can't travel directly so they have to be absorbed and re-emmited until,they make it to the top of the radiative zone.
By convection: energy is transferred by the movement of matter until it reaches the photosphere.