1. Kieu Parrish
  2. PowerBuilder
  3. Wednesday, 22 April 2020 17:45 PM UTC

Good Afternoon!

I would like to embed an image into HTML tag in PowerBuilder .

And We are using PowerBuilder 2017 R3 Build 1880.

Does anyone know how to convert an image into hex Bitmap using PowerBuilder coding ?

 

Thank you very much!

 

Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 22 April 2020 17:55 PM UTC
  2. PowerBuilder
  3. # 1

I haven't tried this myself but it appears that the image file has to be converted to a base64 string and then included in the HTML like this example I got off wikipedia:


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

 

Comment
  1. Kieu Parrish
  2. Wednesday, 22 April 2020 22:26 PM UTC
Thank you very much, Roland!

I will try that.

  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.