An enzyme that catalyzes the oxidation of glycolaldehyde to glycolate, using NAD and NADP as COENZYMES.