AnsweredAssumed Answered

Encoding a picture in custom URL in Webviewer

Question asked by madmike6537 on Dec 17, 2014
Latest reply on Dec 22, 2014 by madmike6537

Hi Guys,


I am completely stuck and need some help. I am trying to put a picture in custom URL calculation in my webviewer. How can I do this? I am currently trying to use the base64 data of the image in a text field. The problem is that is has + signs in it, and I think its causing filemaker some issues. The code runs fine in other web browsers, this is the only thing I can think of because the documentation seems to indicate that plus signs might be a problem.


So if that sounds like the issue, how can I get around that? I have tried putting the picture in a container file, and then with a seperate field using the Base64Encode(container field) and then in my javascript using this:


backgroundPic.src =  'data:image/png;base64," & Overview::bImageData &"';


The webviewer still comes up blank though. When I extract the source code the image data seems messed up, it ends up on a bunch of seperate lines and still has the plus signs in it.


Anyone have any experience embedding pictures into custom webviewer code?