Your application will still have to be sent to a visa office outside of Canada. Also, being in Canada when you apply often reduces the chances of approval since it's more difficult to show proof of ties to your home country. I would reapply from your home country - assuming you can address the reasons for refusal.