in reply to Re^4: printing file downloads
in thread printing file downloads

see that is my problem, I need to find out if I have to print a binary file or not

I already covered this, there is absolutely no reason you need to find out, treat them all as binary, print the appropriate headers, and let the browser do its job

Replies are listed 'Best First'.
Re^6: printing file downloads
by Anonymous Monk on Dec 24, 2010 at 05:27 UTC
    sure enough, I tested it with a .gif and even though I did not set binmode it worked great... You were right.

    I did not understand that when you said it, I was working on no sleep in 19 hours so I was very tired... anyhow, it works great now.

    Thank you all for helping me resolve this.

    Richard