Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How can I retrieve a mysql text blob in Catalyst?

by Your Mother (Archbishop)
on Oct 26, 2011 at 18:47 UTC ( [id://933969]=note: print w/replies, xml ) Need Help??


in reply to How can I retrieve a mysql text blob in Catalyst?

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.

Replies are listed 'Best First'.
Re^2: How can I retrieve a mysql text blob in Catalyst?
by miguelele (Beadle) on Oct 26, 2011 at 19:39 UTC

    I trusted your word more than mine, so I revised everything from scratch, and I found ALL my lost xml text in the source view of the web page. The first line is <?xml version="1.0" encoding="UTF-8"?> and it messed up things.

    Now I can start the "real thing": how to parse the XML more or less as I did in Flex.

    I think I will come back soon. Thank you!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://933969]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (8)
As of 2024-04-19 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found