{"action":"closed","issue":{"url":"https://api.github.com/repos/gdaws/node-stomp/issues/46","repository_url":"https://api.github.com/repos/gdaws/node-stomp","labels_url":"https://api.github.com/repos/gdaws/node-stomp/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/gdaws/node-stomp/issues/46/comments","events_url":"https://api.github.com/repos/gdaws/node-stomp/issues/46/events","html_url":"https://github.com/gdaws/node-stomp/issues/46","id":154250866,"number":46,"title":"How to handle/consume binary data ","user":{"login":"choudhary001","id":1501895,"avatar_url":"https://avatars.githubusercontent.com/u/1501895?v=3","gravatar_id":"","url":"https://api.github.com/users/choudhary001","html_url":"https://github.com/choudhary001","followers_url":"https://api.github.com/users/choudhary001/followers","following_url":"https://api.github.com/users/choudhary001/following{/other_user}","gists_url":"https://api.github.com/users/choudhary001/gists{/gist_id}","starred_url":"https://api.github.com/users/choudhary001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choudhary001/subscriptions","organizations_url":"https://api.github.com/users/choudhary001/orgs","repos_url":"https://api.github.com/users/choudhary001/repos","events_url":"https://api.github.com/users/choudhary001/events{/privacy}","received_events_url":"https://api.github.com/users/choudhary001/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-11T13:59:50Z","updated_at":"2016-10-26T21:49:49Z","closed_at":"2016-10-26T21:49:49Z","body":"Hi,\r\n\r\nI have requirement where my node consumer will be consuming binary data. I get below 'message' object on receiving binary data:\r\n{\"_readableState\":{\"objectMode\":false,\"highWaterMark\":0,\"buffer\":[],\"length\":0,\"pipes\":null,\"pipesCount\":0,\"flowing\":null,\"ended\":false,\"endEmitted\":false,\"reading\":false,\"sync\":true,\"needReadable\":false,\"emittedReadable\":false,\"readableListening\":false,\"defaultEncoding\":\"utf8\",\"ranOut\":false,\"awaitDrain\":0,\"readingMore\":false,\"decoder\":null,\"encoding\":null},\"readable\":true,\"domain\":null,\"_events\":{},\"_eventsCount\":1,\"command\":\"MESSAGE\",\"headers\":{\"content-length\":10,\"expires\":\"1463061403952\",\"destination\":\"/topic/test.topic.0\",\"subscription\":\"1\",\"priority\":\"4\",\"message-id\":\"ID:shakti01.hyd.deshaw.com-51570-1462974867310-1:1:1:1:28\",\"timestamp\":\"1462975003952\"},\"ackType\":\"ACK\"}\r\n\r\nI am not sure how to consume binary data with this API. Could you please help\r\n"}}
{"actor":{"display_login":"gdaws"}}