I have worked in immigration. The fact is that you can appeal once you have been turned down for a residence permit. My advice is NOT to go to appeal, but to go back to your own country and appeal from there. Your appeal will carry more weight if you do it this way. Withdraw your appeal BEFORE it go...