Skip to content

Commit

Permalink
Merge pull request interfax#6 from koozie/windows_binary_read
Browse files Browse the repository at this point in the history
Update to README: Add Example of Binary Read: Required on Windows
  • Loading branch information
jesscanady committed Mar 15, 2012
2 parents 845222e + e236189 commit 49cba2e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.markdown
Expand Up @@ -39,7 +39,11 @@ Creating an HTML fax:

Creating a PDF fax:

fax = OrderFax.new(:pdf).contains(File.read('/files/document.pdf').subject("test").to("+4923456123456")
fax = OrderFax.new(:pdf).contains(File.read('/files/document.pdf')).subject("test").to("+4923456123456")

Creating a PDF fax on Windows (Force Binary Mode on File Read):

fax = OrderFax.new(:pdf).contains(File.open('/files/document.pdf','rb') {|io| io.read}).subject("test").to("+4923456123456")

It is possible to specify more than one receipent:

Expand Down

0 comments on commit 49cba2e

Please sign in to comment.