DPI means dots per inch.
How many dots (pixels) do you have on your photo?
Let's see ... 50CM is 19.5 inches (+/-) and 70CM is 27.5 inches.
So to print at 19 X 27 at 300 DPI you would need a source photo that is
19 X 300 = 5700 pixels wide
27 X 300 = 8100 pixels wide
5700 X 8100 = 46,170,000 pixels or 46MP
So unless you shot that photo on a 27,000$ digital medium format camera like the Hasselblad H5D-50 you are out of luck.
1- Whoever told you 300 DPI is needed for a poster is an idiot.
300 DPI is for things like flyers or magazines ... not for posters. Posters can be printed at a much smaller DPI ... the further away you are from the print, the smaller the DPI can be. Billboards are printed at around 30-40 DPI.
2- Odds are, you stole a photo online and want to print it ...
a- That's not gonna work at those sizes since your source file is probably 600 pixels at the long side at most. The largest you could prints such a small file at would be 4X6 and the quality wouldn't be very good.
b- Unless you own the RIGHTS to that image, you are committing a crime.