A high-flying helicopter rescue at sea over the weekend was all captured on camera.

A police helicopter was dispatched Sunday afternoon to help a man on a cargo ship needing medical attention.

A medic was lowered onto the vessel to pick up the 22-year-old who was then taken to Staten Island University Medical Center for treatment. 

The ship he was on was anchored off the coast of Brooklyn, about 20 nautical miles southeast of Floyd Bennet Field.