Net::FT...::IOBlob(3)
π NAME π
Net::FTPServer::DBeg1::IOBlob β the example DB FTP server personality π
okay bestie, real talk: this is a lil module that gives you an IO handle so you can read and write PostgreSQL blobs. it's the "personality" for the example DB FTP server, iykyk π
β¨ SYNOPSIS β¨
use Net::FTPServer::DBeg1::IOBlob;
that's literally it. one line. slay π«Ά
πΈ METHODS πΈ
$io = Net::FTPServer::DBeg1::IOBlob ('r', $dbh, $blob_id);$io = Net::FTPServer::DBeg1::IOBlob ('w', $dbh, $blob_id);
Create an IO handle for reading or writing a PostgreSQL blob. the 'r' is giving read mode, the 'w' is giving write mode, and you hand it your $dbh plus the $blob_id β periodt π
$io->getc ();
Read 1 byte from the buffer and return it. one (1) singular byte. no more, no less π
$io->read ($buffer, $nbytes, [$offset]);$io->sysread ($buffer, $nbytes, [$offset]);
Read $nbytes from the handle and place them in $buffer at offset $offset. yes the $offset is optional, she's flexible like that π
$io->write ($buffer, $nbytes, [$offset]);$io->syswrite ($buffer, $nbytes, [$offset]);
Write $nbytes to the handle from $buffer offset $offset. same deal, $offset optional β¨
$io->print ($buffer);$io->close;
Close the IO handle. bye bestie, it was real π
π AUTHORS π
Richard Jones (rich@annexia.org).
π COPYRIGHT π
Copyright (C) 2000 Biblio@Tech Ltd., Unit 2-3, 50 Carnwath Road, London, SW6 3EG, UK
π SEE ALSO π
that's the whole vibe, bestie β no cap, every flag, every arg, every path preserved exactly as she came. this lil doc shipped as part of perl v5.42.0 and got its glow-up date stamped 2025-07-25 π¦ stay hydrated, read your blobs responsibly, and go be the main character of your own FTP server πβ¨
π¦ where this page comes from
- fedora 43: perl-Net-FTPServer 1.125-33.fc43 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms