For a barium x-ray, you must drink a chalky liquid. The liquid has barium in it. It coats the upper digestive tract. This includes the esophagus, stomach, and upper part of the small intestine. The liquid makes these areas show up on an x-ray.