in reply to Re: Mixing sysread() with <FILEHANDLE>?
in thread Mixing sysread() with <FILEHANDLE>?

I would definitely not use the FTP model. It just brings in too many operational issues (firewalling, security, etc.) Moreover, you have to make a separate TCP connection for each 'blob', and that will easily eliminate any speed-up gained by not having to encode the data.
  • Comment on Re^2: Mixing sysread() with <FILEHANDLE>?

Replies are listed 'Best First'.
Re^3: Mixing sysread() with <FILEHANDLE>?
by sasdrtx (Friar) on May 27, 2008 at 01:35 UTC

    Security and firewalls are a concern for all TCP/IP communication; FTP isn't secure, but that's not relevant here. Given the use of SSH, SFTP could be used, which should add no security concerns.

    As for using FTP as a model, the key point is having a different session for the binary data. As for performance, I don't think you can assume that a new session per blob is going to be a major factor. It depends on the average size of those blobs. Anyway, as the original poster noted, a single separate data session would likely serve his purpose.


    sas