https://bugs.kde.org/show_bug.cgi?id=474338

--- Comment #3 from Serg Podtynnyi <s...@podtynnyi.com> ---
The  format for data is here 
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs

and it looks like this:

in html:
<img src="data:image/png;base64,iVBORw0KGgoAAA
ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU
5ErkJggg==" alt="Red dot" />

in markdown:
![Hello World](data:image/png;base64,iVBORw0KGgoAAA
ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU
5ErkJggg==)

so clipboard should have string data starting with data:image/png;base64, 
and ends with(out)  base64  paddings ==

PS
For QT it is something like this
https://doc.qt.io/qt-6/qbytearray.html#toBase64

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to