How to Include Image base64 in table to export like pdf

How to Include Image base64 in table to export like pdf

PizzaFrenzyPizzaFrenzy Posts: 3Questions: 2Answers: 0

this for the table
<tr>
<td><?= $no++; ?></td>
<td><?= $row['nama']; ?></td>
<td><?= $row['no_tlp']; ?></td>
<td><?= $row['lokasi']; ?></td>
<td><?= $row['deskripsi']; ?></td>
<td ><img style="width: 80px; hight: 100px;" src='data:image/png;base64,<?= $row['image']; ?>'></td>
<td><?= $row['status']; ?></td>
<td><?= $row['tgl_buat']; ?></td>
</tr>

$(function() { $("#example1").DataTable({ "responsive": true, "base64": true, "lengthChange": false, "autoWidth": false, "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"] }).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)'); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "base64": true, "autoWidth": false, "responsive": true, }); });

when i click pdf or print or other else, the image is not include it will be empty column, someone can help me? thanks

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    This thread should help, it's asking the same thing.

    Colin

Sign In or Register to comment.