How to export a BLOB content to a file
Without using tools like Toad or Sql Developer, I'd like to know how it's possible to export a BLOB content to a file.
I mean, let's suppose I have the table
MYTABLE (ID_KEY NUMBER, PDF_CONTENT BLOB) where the BLOB column contents a PDF,
how can I write a procedure (pl/sql or sql, ...) for exporting the BLOB content on file (UNIX or Windows)?
Thanks!