You can do this by applying online. On your behalf, your relative or friend in the UAE can also apply for a visa.