in reply to Re: Extracting binary data from mssql
in thread Extracting binary data from mssql

My guess is that the file is too short.

The cause must be looked for in lack of proper initialization of LongReadLen.

  • Comment on Re^2: Extracting binary data from mssql

Replies are listed 'Best First'.
Re^3: Extracting binary data from mssql
by runrig (Abbot) on Jul 25, 2007 at 22:24 UTC
    With that in mind, my guess is that the default of LongTruncOk being false should cause the fetch to fail (Update: Would LongReadLen being zero cause the fetch to fail, or fetch an empty string?), but RaiseError is probably false also, so we're not catching that error, though PrintError is probably true, so we should at least see the error, but the error isn't mentioned, so I'm not sure what's going on because there's too little info :-)