The correct answer is by convection.
In fact, in a fluid (like the air in the room full of fire) the warmer parts of the fluid move upward, replacing the colder parts which go down. For this very same reason, the fire spreads moving toward the upper floors of the bulding.