If you still insist on producing of carbohydrates from sugars along with O2 as by product ,you can try electrolisis (reducing by electrolisis, has been described in the literature) as follows:
(simplest case-alphaGlucose)
C5(OH)5COH (e) = C6(OH)nHm+ xO2
By carefully choosing of conditions(solvent, curient of electricity,concentration etc) you can obtain all of possible products of reducing.