how to save the new texture of a material

Hi,

I’m a beginner in opengl. Currently, I have a material loaded and I changed its texture. What I want is to export that new material.

can anyone help me how to save the new texture of a material? or is it possible?

Thanks.