• try to remove -N in the bcp queryout.

    If you do that bcp doesn't output anything it just displays the prompt:

    Enter the file storage type of field FileData [image]:

    which isn't very helpful!