{"action":"created","issue":{"url":"https://api.github.com/repos/chadsmith/node-phaxio/issues/3","labels_url":"https://api.github.com/repos/chadsmith/node-phaxio/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/chadsmith/node-phaxio/issues/3/comments","events_url":"https://api.github.com/repos/chadsmith/node-phaxio/issues/3/events","html_url":"https://github.com/chadsmith/node-phaxio/issues/3","id":6438991,"number":3,"title":"We don't stream files","user":{"login":"reconbot","id":25966,"avatar_url":"https://avatars.githubusercontent.com/u/25966?v=3","gravatar_id":"","url":"https://api.github.com/users/reconbot","html_url":"https://github.com/reconbot","followers_url":"https://api.github.com/users/reconbot/followers","following_url":"https://api.github.com/users/reconbot/following{/other_user}","gists_url":"https://api.github.com/users/reconbot/gists{/gist_id}","starred_url":"https://api.github.com/users/reconbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reconbot/subscriptions","organizations_url":"https://api.github.com/users/reconbot/orgs","repos_url":"https://api.github.com/users/reconbot/repos","events_url":"https://api.github.com/users/reconbot/events{/privacy}","received_events_url":"https://api.github.com/users/reconbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chadsmith/node-phaxio/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2012-08-24T16:55:15Z","updated_at":"2015-06-23T20:17:53Z","closed_at":null,"body":"Currently the way we use `request` creates the multipart message and then sends it off. This requires us to build the message in memory before sending. Large faxes (many page pdfs for example) could be a problem to send. Ideally we'd stream the data one by one out into the request. I'd need to look closer at `request`'s internals to see if it's possible to use it to do it."},"comment":{"url":"https://api.github.com/repos/chadsmith/node-phaxio/issues/comments/114630437","html_url":"https://github.com/chadsmith/node-phaxio/issues/3#issuecomment-114630437","issue_url":"https://api.github.com/repos/chadsmith/node-phaxio/issues/3","id":114630437,"user":{"login":"namlet","id":60198,"avatar_url":"https://avatars.githubusercontent.com/u/60198?v=3","gravatar_id":"","url":"https://api.github.com/users/namlet","html_url":"https://github.com/namlet","followers_url":"https://api.github.com/users/namlet/followers","following_url":"https://api.github.com/users/namlet/following{/other_user}","gists_url":"https://api.github.com/users/namlet/gists{/gist_id}","starred_url":"https://api.github.com/users/namlet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namlet/subscriptions","organizations_url":"https://api.github.com/users/namlet/orgs","repos_url":"https://api.github.com/users/namlet/repos","events_url":"https://api.github.com/users/namlet/events{/privacy}","received_events_url":"https://api.github.com/users/namlet/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T20:17:53Z","updated_at":"2015-06-23T20:17:53Z","body":"I'm not if this would require streaming per se, but can I send a BASE64 encoded pdf file in memory? Or do I need to save the document to a file system, then refer to that document? (this might be a deal breaker for us) Due to HIPAA regulations, storing the pdf file on any persistent storage causes us lots of issues. The notification system that will be interacting with the FAX API receives a JSON message with the pdf document BASE64 encoded inside of it. I'd like to simply send that representation to be faxed. Will that work?\r\n\r\nThanks! I really like Phaxio and would love to use it for this project."}}