Sometimes a dye needs to be given through the vein to help the doctor better see structures inside the body.