Magnetic field distribution in a magnetic liquid spike