K.H.
I would say he has a stomach bug along with the ear infection , and his stomach cannot tolerate anything at the moment , especially as you said water does the same thing and he has been heaving aswell. Unfortunately this is not going to help in getting rid of the ear infection. I would wait it out and only try and give fluids to stop him getting dehydrated and then see what the Dr says in the morning.
Hope he feels better soon