Oatmeal, apples, peas, carrots, beans, and pears are examples of stomach ulcer foods high in soluble fiber. Whole grains, almonds, green beans, potatoes, and cauliflower are all good sources of insoluble fiber. Other fruits and vegetables are high in fiber as well.