I added binmode STDOUT and it works perfectly now. Try the same in your code. Thanks!
In reply to Re: Binary File Load error? by jesuashok in thread Binary File Load error? by madtoperl