0
は、ここに私のコードです - 私はそれがこのエラーを示し$pdf->Image($logo,10,10,188);
でこの$logo
を入れたときに>進捗-report.php データ型は、APIはFPDFfpdfでlongbobイメージを表示する方法は?
$res=mysqli_query($conn,"SELECT school_logo FROM dsms_school_img");
while($row=mysqli_fetch_array($res))
{
$logo = '<img src="data:image/jpeg;base64,'.base64_encode($row['school_logo']).'"/>';
}
LONGBLOBです:
Fatal error: Uncaught Exception: FPDF error: Image file has no extension and no type was specified: <img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/4QECRXhpZgAATU0AKgAAAAgABAEPAAIAAAAGAAAAPgEQAAIAAAAPAAAARIKaAAUAAAABAAAAU4dpAAQAAAABAAAAWwAAAABDYW5vbgBDYW5vbiBFT1MgMTAwRAAAAAABAAAAoAAHgpoABQAAAAEAAACxgp0ABQAAAAEAAAC5iCcAAwAAAAIAZAAAkAMAAgAAABQAAADBkgkAAwAAAAIAEAAAkgoABQAAAAEAAADVpDQAAgAAAB0AAADdAAAAAQAAAKAAAAA4AAAACjIwMTc6MDE6MDYgMTY6MDc6MDkAAAAANwAAAAFFRi1TMTgtNTVtbSBmLzMuNS01LjYgSVMgU1RNAP/bAEMABQMEBAQDBQQEBAUFBQYHDAgHBwcHDwsLCQwRDxISEQ8RERMWHBcTFBoVEREYIRgaHR0fHx8TFyIkIh4kHB4fHv/bAEMBBQUFBwYHDggIDh4UERQeHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHv/AABEIAVQB/gMBIgACEQEDEQH/xAAdAAACAgMBAQEAAAAAAAAAAAADBAIFAAEGBwgJ/8QAQhAAAQQBAwMDAgQDBgQEBgMAAQACAxEEBRIhBjFBE1FhInEHFDKBI5GhFUJiscHwCFLR4RYkM1NDcoKDkvEXY6L/xAAbAQACAwEBAQAAAAAAAAAAAAACAwABBAUGB//EADMRAAICAQQBAwIFAQgDAAAAAAABAgMRBBIhMUEFE1EiYRQycYHw0RUjQpGhscHhM1Lx/9oADAMBAAIRAxEAPwD6O1LUA9xLqBXNaplsddPSmo55t1OVFlZu4nlfKXlnt6oRqWEEz5zzTrVNPLRW in C:\xampp\htdocs\dignitysmslatest\admin\Module\manage\pdf\fpdf.php on line 271
mysqlを使用して質問したのはなぜですか? – Naktibalda
はすでにタイプミスを編集しました –
サムが何を間違えたのかを説明する方が良いでしょう。 – Naktibalda