If you get a Visitor record and your Study Permit expires while in Canada, you won't be able to renew a Study Permit from within Canada. For initial application for Study and Work Permits one should do it from their country of origin (country of residence other than Canada). The changes are coming for international students in June that will allow some visitors to apply for a Study Permit from within Canada, however, there are certain conditions for that and it seems that in your case you will have to apply from your country. You see, according to the current rules, one can stay in Canada for the duration of their Study Permit even if he/she is not studying. It all is going to change come June. The students who are not actively pursuing their program of study will be reported to CIC by their schools and issued removal letters. All the best in finding the best solution for you!