I have a base64 encoded PNG image being returned from a webservice and I cant figure out how to get that to display in an image control.
I have tried experimenting with setting prop:handle, prop:text of both the base64 encoded and decoded values and that doesn’t seem to work.
I have also tried setting the handle of a blob to both encoded and unencoded values and then using blobtofile and that doesn’t seem to work either.
I also tried stringtheory .SetBytes and .ToBlob, but I have an unclear understanding on how that all works and ties together with the image control.
I must be doing something fundamentally wrong and I was hoping y’all could enlighten me.
On the web, I can do this like so:
<img src="data:image/png;base64, H4sIAAAAAAAAAPt/4/8DBgEvN083BkZGBgZGIGT4/4hJw9PZOT4gyN/N08cVLMEkwQAETAIMDLl5JUVB7k4KEZFRCgxIIDG5uIABNwCa8e0aiGRguKyLRx0uwJmSWpwMpD8AcUkR0HKgkSlAtkg6hF0BYidB2D0gdlFIkDOQvQDI1khHYichsctLCkqA7BMg9ckFRSD2HSDbJjenNBnhbgae1LzQYCAdAcQyDMUMQQzuDE5k+AEvQIRn/iIGBouvDAzMExBiSTMZGLa3MjBI3EKIqQD9wN/CwLDtfEFiUSJYiAWImdLSGBg+LWdg4I1kYBC+wMDAFY1pByIucPhVAexXd4Z8IExnyGFIBYp4MuQxJDPoAVlGDAYMhgxm/28zODP8pxQADWGk2JADDIIcDE0Mt5gZlRiYBBmZBRn/H2EQB6ZdRkaUYGZkYgZKaAoAUzojKzsrQpZRUEjR0DEwsbBx4sKDF5mUNj78EJQEVCqCZgAQgEQFMUVvMfAwMwItZxZksGd4BhPeNyd5vvbBtNc73/8CplfWzmU3LjJE9jzm732x0eSdT3CZQwOKKRvnvZ89MZnz4ScOEI/X9aOf4T1JpZcrmM5eQihkDjRPTt9f4OU3KXLu7XfxZVsf/wpKKm7Q3GYXpum5r+j026k96uUVzLe3L4y4vIpha//zNVN7rRaHdBz7efl8g2eP2aIzVxmY9HeIFd2V59hc8+8kwnqxt5svrMm8IphtdfLtpcq/cnc3HpDab22T9G+C69zpd0urD/nE92TOC3SaPPX3MsbMl6ev/l4UOWeZeqfJsTPvTqplP5CaMd9P0PpPxqFryWZrs0WfPpCQ2voveXLonEdz0qybxdI9s6Zc2v3o0b4Zh7S37eeMAFrBFDl3zuOTnhe+vX35Zbub3Mo++YQTd5WKO+aZPLWo2znbeH/pA7jHeV2Cfj6U3/TT60335r9FDAy66ZG6fiuYbs2ds/hgVllRPweQWQ1O4RuNJbwYNhtbLECPJeoA+/83AROCMYg6BQAA”>