The present invention comprises methods and devices for generating and providing contrast medium for sonography of structures such as ducts and cavities. The invention provides for creation of a contrast medium comprising detectable acoustic variations between two phases, for example, a gas and a liquid. Sonography is the primary imaging technique but other conventional detection techniques may also be employed with the present invention.