in reply to email pdf file - file damaged
I have my reservations about IO::All, especially once you move from a hardcoded filename to anything variable because it reopens the security hole that was fixed by introducing the three argument form of open. Additionally, my guess is that you're running all of this under Windows and that IO::All doesn't know about binmode. From delving into the code of IO::All::File and IO::All, maybe you could alleviate this by using
body => io( 'document.pdf' )->binary(1)->all,
but I would entirely stay away from IO::All for it heaps too much magic onto magic and relies on the undocumented assumptions made by Ingy.
Also see Mumble file mumble corrupt by jmcnamara
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: email pdf file - file damaged
by madison.sacd (Novice) on May 07, 2007 at 07:29 UTC | |
by Corion (Patriarch) on May 07, 2007 at 07:34 UTC | |
by madison.sacd (Novice) on May 07, 2007 at 07:55 UTC | |
by ultranerds (Hermit) on Mar 29, 2019 at 11:55 UTC |