It looks like you have a bug to work around at least.

Some DBD::* modules define their own ways to handle large BLOBs. (Well, DBD::Sybase does.) It looks like DBD::InterBase does not.

If you're willing to compile from locally-modified source, with some poking around you're pretty likely to be able to find the 1 MB limit and change it to something more reasonable. That would move the problem, but you'd have to remember to patch it every time you install. With more work you might be able to remove the arbitrary restriction. In which case you could submit the patch back to the DBI (and possibly also the DBD::InterBase) folks.

If what you need is only a little bigger than 1 MB then you could always use Compress::Zlib to deflate data before storing it, and inflate afterwards.

Failing that, one way to work around the issue is to create a table where you store the data across several rows. You could then define a function call to take a large field and divide it into several pieces that you store under some ID. And a reverse function to fetch those rows back and reassemble them.


In reply to Re: InterBase MEMO/BLOB fields, data with size > 1MB by tilly
in thread InterBase MEMO/BLOB fields, data with size > 1MB by pet

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.