what method should I use to return the contents of a solace.message in human readable string

Tamimi,
Thanks for the response. I am familiar with the links you posted. The sample code that you referred to in the links was the exact source of my code. All I did was cloned the code, changed the only changed the pub/sub parameters to match my environment and I did get the pub/sub to work exact the output was not in the form that I can use. The following is an excerpt from my console log. The code that I used to display this was straight from the sample (line 112):
console.log(‘Received message: "’ + message.getBinaryAttachment() + ‘", details:\n’ + message.dump());
partial output follows. Any ideas?
Received message: “¬í sr ,com.solacesystems.jms.message.SolTextMessageõ�?ï�?$â L mTextt Ljava/lang/String;xr (com.solacesystems.jms.message.SolMessageû÷/Ñ_-iø I mJMSDeliveryModeZ mJMSDestinati
mJMSTimestampZ mJMSTimestampSetZ mReadOnlyPropertiesL mDMQEligiblet Ljava/lang/Boolean;L mDiscardIndicationq ~ L mElidingEligibleq ~ L mHTTPContentEncodingq ~ L mHTTPContentTypeq ~ L mIsDT
mJMSMessageIDq ~ L mJMSReplyToq ~ LmJMSTypeq ~ L mPropertiest Ljava/util/Map;L mmSenderIDq ~ L mTopicSequenceNumbert Ljava/lang/Long;xp     ppppppppppppppsr java.uti
l.HashMapÚ�?Ã`Ñ F
loadFactorI thresholdxp?@  t EventTypet SAVEt EventNamet CONTACT_RECORD_SAVE_EVENTxppxtD{“dataObject”:{“callDuration”:416545,“preferredLanguageCode”:“English”,“contactChanne
lType”:“Phone”,“consumerLastName”:“mDadbVSekoAX”,“linkRefId”:-200309084220205,“consumerPhone”:“4574339910”,“contactType”:“Third Party”,“createdOn”:“2020-03-09T17:57:11.716-05:00”,“inboundCallQueue”:“El
igibility”,“contactRecordId”:-200309084228850,“contactRecordEndTime”:“2020-03-09T18:20:48.663-05:00”,“uiid”:“DlVNubhvWnyQKelu”,“correlationId”:“uLIhMAwsf”,“contactRecordStartTime”:“2020-03-09T17:57:11.
716-05:00”,“contactCompaignType”:“Enrollment Reminder”,“updatedBy”:null,“organizationName”:“Brg”,“contactRecordStatusType”:“Dropped”,“updatedOn”:null,“linkRefType”:“consumer”,“consumerFirstName”:“wKdlh
o”,“contactOutcome”:“Reached Successfully”,“wrapUpTime”:“00:00:59”,“createdBy”:“txxhc”,“consumerAuthenticatedInd”:“false”,“contactRecordType”:“Inbound”,“contactReasonEditType”:“Correcting Contact Reaso
n/Action”,“consumerEmail”:"JZwQLlv@yoY.com”},“recordType”:“Contact Record”,“action”:“Create”,“eventCreatedOn”:“2020-03-09T18:20:48.663-05:00”,“projectName”:“StxdWRhnnXrrOsG”,“projectId”:-20030908421825
6}x", details:
Destination: [Topic A/B]
AppMessageID: ID:fe80:0:0:0:890:ef43:a717:e2a2%eth12f8f2170bf5144bb0:41827
SendTimestamp: 1583796048663 (Mon Mar 09 2020 19:20:48 GMT-0400 (Eastern Daylight Time))
Class Of Service: COS1
DeliveryMode: DIRECT
User Property Map: 3 entries
Key ‘EventName’ (STRING): CONTACT_RECORD_SAVE_EVENT
Key ‘EventType’ (STRING): SAVE
Key ‘JMSXUserID’ (STRING): solace-cloud-client

Binary Attachment: len=2016
ac ed 00 05 73 72 00 2c 63 6f 6d 2e 73 6f 6c 61 …sr.,com.sola
63 65 73 79 73 74 65 6d 73 2e 6a 6d 73 2e 6d 65 cesystems.jms.me
73 73 61 67 65 2e 53 6f 6c 54 65 78 74 4d 65 73 ssage.SolTextMes
73 61 67 65 f5 8f ef 0e cd 24 1e e2 03 00 01 4c sage…$…L…