  We use the Ernst-Schwarzschild solution for a black hole immersed in a
uniform magnetic field to estimate corrections to the bending angle and time
delay due-to presence of weak magnetic fields in galaxies and between galaxies,
and also due-to influence of strong magnetic field near supermassive black
holes. The magnetic field creates a kind of confinement in space, that leads to
increasing of the bending angle and time delay for a ray of light propagating
in the equatorial plane.
