glTF exporter with images
For a while there was a known issue in the original glTF exporter where it wouldn't export "packed" images (ones that exist only in Blender, not on disk, such as resulting from texture painting as you describe).  This is fixed in the newer glTF-Blender-IO project, that ships with Blender 2.80 Beta.