Cognex official documentation provide an example script for pulling images from Cognex DataMan devices. The script resembles BarcodeSink, it allows you to pull images without relying on a FTP server, but has several limitations that make it unsuitable for production use.
If you want a robust solution that can handle hundreds of simultanious connections and arbitrary message fragmentation, BarcodeSink is for you. Please try our free demo.