cubrid_lob_export

(PECL CUBRID >= 8.3.1)

cubrid_lob_exportExport BLOB/CLOB data to file

Beschreibung

cubrid_lob_export(resource $conn_identifier, resource $lob_identifier, string $path_name): bool

cubrid_lob_export() is used to get BLOB/CLOB data from CUBRID database, and saves its contents to a file. To use this function, you must use cubrid_lob_get() first to get BLOB/CLOB info from CUBRID.

Parameter-Liste

conn_identifier

Connection identifier.

lob_identifier

LOB identifier.

path_name

Path name of the file.

Rückgabewerte

Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.

Beispiele

Beispiel #1 cubrid_lob_export() example

<?php
$conn 
cubrid_connect ("localhost"33000"demodb""dba");

cubrid_execute($conn,"DROP TABLE if exists doc");
cubrid_execute($conn,"CREATE TABLE doc (id INT, doc_content CLOB)");
cubrid_execute($conn,"INSERT INTO doc VALUES (5,'hello,cubrid')");

$lobs cubrid_lob_get($conn"SELECT doc_content FROM doc WHERE id=5");
echo 
"Doc size: ".cubrid_lob_size($lobs[0])." bytes";
cubrid_lob_export($conn$lobs[0], "doc_5.txt");
cubrid_lob_close($lobs);
cubrid_disconnect($conn);
?>

Siehe auch

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

Bild drehen

Your dedication is commendable—ten hours of persistence shows true determination. With the right guidance, success is always within reach! Just ...

Geschrieben von mobhsol am 06.06.2025 14:52:51
Forum: PHP Developer Forum
Bild drehen

Your persistence is truly inspiring—spending over 10 hours on a task shows unmatched dedication and a genuine thirst for learning. Just like rot ...

Geschrieben von mobhsol am 06.06.2025 14:49:12
Forum: PHP Developer Forum
Bild drehen

Your skill in adjusting visuals enhances user experience beautifully. I’m a trusted pediatric dietitian and nutritionist solving kids’ health. ...

Geschrieben von hsolsuraj009 am 06.06.2025 13:56:54
Forum: PHP Developer Forum
Bild drehen

Great job improving image clarity with precise rotation! I’m an expert solving acoustic insulation door and soundproof panel needs. Don’t miss ...

Geschrieben von hsolsuraj009 am 06.06.2025 13:52:42
Forum: PHP Developer Forum