Answer by
Baobao (1273)
In my opinion,they are generally tiny white worms.Your case is very special and rare,I guess this may be the situation:first the tomato is not in a good condition and become rotted,then some flies come,later there is a hole in the tomato and worms appear.What you should do is to throw these tomatoes away.