Catalyst proper has nothing to do with the database. This sounds like a DBIx::Class problem from some of your vocabulary.

There is nothing particularly special about text stored in blobs in MySQL, I think the only practical difference is there is no associated character set; there shouldn't be any problem getting it. It sounds like your schema -- Result(Source) class for the table -- is improperly defined or you're doing something like ->search({},{columns => [qw/ everything but the blob /]}). Without seeing code, those are just guesses: either the My::Schema::Result::TableName is incomplete or the call is excluding the column somewhere along the way. If you show some code, it would be easier to help.

Sidenote: You could inflate the blob content to an XML object of some sort to make it easier to handle and get to the data/text. That's incredibly handy but a little expensive depending on your use case.


In reply to Re: How can I retrieve a mysql text blob in Catalyst? by Your Mother
in thread How can I retrieve a mysql text blob in Catalyst? by miguelele

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.