Net::FT...::IOBlob(3)

πŸ“¦
version 1.125 Β· 2 versions
, in fedora 43

πŸ’– 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 (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