Print JPG in PDF File from K2 Database

  • 5 February 2019
  • 1 reply
  • 14 views

Badge +4

I have this

 

<file><name>samris.jpg<content>/9/74e....= </content></name></file>

 

Which K2 saves to a Column, where <content></content> holds the base64 string and then when i want to Display it to show on a Control so i can then use on a Form and generate PDF From there together with other information as well on File. But it does not seem to generate the image on the PDF File. Do I use <img></img> In place of this <file></file>instead?


1 reply

Badge +15

Hi,


 


The format saved into your DB can only be loaded into either the File Attachment or the Image Attachment control for it to show up in your form. For images, you need to load it into the Image Attachment control.


 

Reply