Forum Discussion
Log4TurtleShell
3 years agoFrequent Visitor
How to Decode a Base64 Encoded Bookmark
I am using this library, https://github.com/microsoft/PowerBI-JavaScript, to embed reports and handle bookmarks. I am calling capture() from the bookmarksManager object on my report. This returns a b...
Anonymous
3 years agoNot applicable
Hi Log4TurtleShell ,
Please review the following links, hope they can help you.
Base64 encoding and decoding in client-side Javascript
How do I decode a Base64 encoded string in JavaScript?
console.log(atob('TXkgU3RyaW5nIFRvIEVuY29kZQ=='));
Base64 Decode a Value in Node.js
const plain = Buffer.from('dXNlcm5hbWU6cGFzc3dvcmQ=', 'base64').toString('utf8')
Best Regards
- Log4TurtleShell3 years agoFrequent Visitor
Thank you for your reply.
Using atob() still returns gibberish. Am I wrong that the bookmark state should be able to be decoded to readable text?
- ozpbi1233 years agoRegular Visitor
Did you ever get a solution to this? I am also trying to decode the bookmark state, but unable to get anything other than gibberish as well.
- Log4TurtleShell3 years agoFrequent Visitor
Unfortunately, I did not. 😞