In order to enter Poland, non-EU citizens may be required to have a visa to Poland. Before arrival it’s recommended to double check the entrance regulations.
If visa is required, you need to apply for it before arrival. Visas to Poland are issued by Polish embassies/consulates located worldwide so you have to apply in the consulate in your country of origin or country of legal residence.