Well, first, you should know that eye ulcers are a very dangerous disease. In some degree, they can lead to blindness. According to some researches, when the clear coating and cornea has been rubbed or irritated, it is possible to have a small tear or cut in your eyes, causing eye ulcers. And it will be painful. For the home remedies, a cold compress and Ibuprofen can be used. But you should go and see an eye doctor to take an eye exam.
Yes, you can treat the corneal ulcer through the medical treatment. You should eat more food with vitamin C to moisture the eyes. In addition, you could do the warm compress at home to make the eyes feel comfortable. You could also drink more water to make the eyes feel moisture. You should have the good rest for the eyes.
Corneal ulcer is the infection of the cornea of the eye. You can use some medicine to cure it, as far as I knoe, triphala may be one of the best cure for the problem. If your corneal ulcer is caused by wearing glasses, you can pay attention to get off your glasses as soon as you get home. Also, you can go to see an ophthalmologist and get checked regularly.