-
Notifications
You must be signed in to change notification settings - Fork 21
Description
Hi,
I was trying to use PrintNode::Client create_printjob with a "raw_base64" content_type.
As written in PrintNode API, I was trying to pass my base64 encoded content through a PrintNode::PrintJob instance but I was getting:
Errno::ENOENT: No such file or directory @ rb_sysopen - G0AbYTEdIQBUSEFOSyBZT1UKRk9SIFRSWUlORwodVkIA
from /Users/suzukiasuka/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/printnode-1.0.5/lib/printnode/printjob.rb:20:in `read'
from /Users/suzukiasuka/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/printnode-1.0.5/lib/printnode/printjob.rb:20:in `to_hash'
from /Users/suzukiasuka/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/printnode-1.0.5/lib/printnode/client.rb:441:in `create_printjob'
I was surprised to look into the code and see that content seems to have to be a file name when content is a "raw_base64" content_type. Is there a reason why we have to use a file? Isn't it reducing speed by having to create then remove a file?
For now I am going to fork my own version and remove that but could you tell me more about this, if you plan to add something else or not after? If you don't plan to do anything about this (like adding another content_type), maybe you should add something in the documentation about that.
Thank you so much