Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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 bookmark with the state. The state is a base64 encoded string. I am trying to decode the string for testing purposes, but I can't get it to decode correctly. I have used Mime tools in Notepad++ and various online decoders, but they all return gibberish.
Is there a trick to decoding base64 encoded bookmark states?
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
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?
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.
Unfortunately, I did not. 😞
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.