Active ulcer bleeding can also be treated during the endoscopy. If a source of bleeding is found, it can be cauterized and the bleeding stopped.