We study the stellar magnetic field configuration in dependence on brane tension and present solutions of Maxwell equations in the external background space-time of a magnetized spherical star in a Randall-Sundrum II type braneworld. The star is modeled as a sphere consisting of perfect highly magnetized fluid with infinite conductivity and a frozen-in magnetic field. With respect to solutions for magnetic fields found in the Schwarzschild space-time, brane tension introduces enhancing corrections to the exterior magnetic field which could be relevant for the magnetic fields of magnetized compact objects as pulsars and magnetars and may provide observational evidence for the brane tension.