Depending on the severity and the type of infection, the antibiotic may be given by mouth or by injection, or may be applied topically