{"action":"created","issue":{"url":"https://api.github.com/repos/qzind/qz-print/issues/178","repository_url":"https://api.github.com/repos/qzind/qz-print","labels_url":"https://api.github.com/repos/qzind/qz-print/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/qzind/qz-print/issues/178/comments","events_url":"https://api.github.com/repos/qzind/qz-print/issues/178/events","html_url":"https://github.com/qzind/qz-print/issues/178","id":135801624,"number":178,"title":"Printing raw images ","user":{"login":"noramtkane","id":3010543,"avatar_url":"https://avatars.githubusercontent.com/u/3010543?v=3","gravatar_id":"","url":"https://api.github.com/users/noramtkane","html_url":"https://github.com/noramtkane","followers_url":"https://api.github.com/users/noramtkane/followers","following_url":"https://api.github.com/users/noramtkane/following{/other_user}","gists_url":"https://api.github.com/users/noramtkane/gists{/gist_id}","starred_url":"https://api.github.com/users/noramtkane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noramtkane/subscriptions","organizations_url":"https://api.github.com/users/noramtkane/orgs","repos_url":"https://api.github.com/users/noramtkane/repos","events_url":"https://api.github.com/users/noramtkane/events{/privacy}","received_events_url":"https://api.github.com/users/noramtkane/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/qzind/qz-print/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"bberenz","id":5912715,"avatar_url":"https://avatars.githubusercontent.com/u/5912715?v=3","gravatar_id":"","url":"https://api.github.com/users/bberenz","html_url":"https://github.com/bberenz","followers_url":"https://api.github.com/users/bberenz/followers","following_url":"https://api.github.com/users/bberenz/following{/other_user}","gists_url":"https://api.github.com/users/bberenz/gists{/gist_id}","starred_url":"https://api.github.com/users/bberenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bberenz/subscriptions","organizations_url":"https://api.github.com/users/bberenz/orgs","repos_url":"https://api.github.com/users/bberenz/repos","events_url":"https://api.github.com/users/bberenz/events{/privacy}","received_events_url":"https://api.github.com/users/bberenz/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/qzind/qz-print/milestones/1","html_url":"https://github.com/qzind/qz-print/milestones/2.0","labels_url":"https://api.github.com/repos/qzind/qz-print/milestones/1/labels","id":1316194,"number":1,"title":"2.0","description":null,"creator":{"login":"tresf","id":6345473,"avatar_url":"https://avatars.githubusercontent.com/u/6345473?v=3","gravatar_id":"","url":"https://api.github.com/users/tresf","html_url":"https://github.com/tresf","followers_url":"https://api.github.com/users/tresf/followers","following_url":"https://api.github.com/users/tresf/following{/other_user}","gists_url":"https://api.github.com/users/tresf/gists{/gist_id}","starred_url":"https://api.github.com/users/tresf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tresf/subscriptions","organizations_url":"https://api.github.com/users/tresf/orgs","repos_url":"https://api.github.com/users/tresf/repos","events_url":"https://api.github.com/users/tresf/events{/privacy}","received_events_url":"https://api.github.com/users/tresf/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":34,"state":"open","created_at":"2015-09-21T12:36:30Z","updated_at":"2016-02-23T20:55:32Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2016-02-23T17:17:04Z","updated_at":"2016-02-23T21:29:11Z","closed_at":null,"body":"I am trying to raw print an image with qz-tray and I am running into an issue in which is tells me that it is unable to parse the base64 data as a raw command. The qz-tray log shows \"Caused by: java.io.IOException: Bad Base64 input character '58' in array position 4\" \r\n\r\nI believe I can see what the issue is looking at the qz-tray 2.0 source. \r\n\r\nIn utils/ByteUtilities.java the isBase64Image function looks for a string that starts with \"data:image/\". However in printer/action/PrintRaw.java the same entire string is treated as base64 data in getImageWrapper.\r\n\r\nYou can see my example code here: https://jsfiddle.net/ckt6t26z/21/"},"comment":{"url":"https://api.github.com/repos/qzind/qz-print/issues/comments/187919840","html_url":"https://github.com/qzind/qz-print/issues/178#issuecomment-187919840","issue_url":"https://api.github.com/repos/qzind/qz-print/issues/178","id":187919840,"user":{"login":"bberenz","id":5912715,"avatar_url":"https://avatars.githubusercontent.com/u/5912715?v=3","gravatar_id":"","url":"https://api.github.com/users/bberenz","html_url":"https://github.com/bberenz","followers_url":"https://api.github.com/users/bberenz/followers","following_url":"https://api.github.com/users/bberenz/following{/other_user}","gists_url":"https://api.github.com/users/bberenz/gists{/gist_id}","starred_url":"https://api.github.com/users/bberenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bberenz/subscriptions","organizations_url":"https://api.github.com/users/bberenz/orgs","repos_url":"https://api.github.com/users/bberenz/repos","events_url":"https://api.github.com/users/bberenz/events{/privacy}","received_events_url":"https://api.github.com/users/bberenz/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T21:29:11Z","updated_at":"2016-02-23T21:29:11Z","body":"Per b40dffd03d8a6ec344960647a31ac53504937b40, the `data:image` tags are no longer checked for because they shouldn't be provided."}}