1
0
-1

Hi,

I need to add image to my form in Maestro. Tricky part is that I get Base64 string from server and I need to dynamic display this string as image in form. Any hints which widget I should use or how to work with this type of data in Maestro? For now I’ve just tried to „hard” save string in data field and by JavaScript set attribute src in img tag, but it doesn’t work properly.   

    CommentAdd your comment...

    3 answers

    1.  
      1
      0
      -1

      I've found what I was doing wrong.

      "Hard" save my Base64 string (using ``) in datafield was my problem. On "on load" form Maestro had problem with template string and change it in same way. When I load file from server after form is loaded, problem disappears.

      Thanks for advices :)

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi,

        Check that your src attribute is formatted correctly with 'data:' etc.  Refer to http://stackoverflow.com/questions/1207190/embedding-base64-images

         

          CommentAdd your comment...
        1.  
          1
          0
          -1

          Can you provide link to form or some example code of what you tried? That approach should work.

            CommentAdd your comment...