# Handling LONG/BLOB data

- ## What makes LONG / BLOB data special?

  - Not practical to pre-allocate fixed size buffers for worst case

- ## Fetching LONGs - treat as normal fields after setting:

  - $dbh->{LongReadLen} - buffer size to allocate for expected data
  - $dbh->{LongTruncOk} - should truncating-to-fit be allowed

- ## Inserting LONGs

  - The limitations of string literals
  - The benefits of placeholders

- ## Chunking / Piecewise processing not yet supported

  - So you're limited to available memory
  - Some drivers support blob_read()and other private methods

## -

Previous slide | Next slide | Back to first slide | View graphic version