You say that, "I'm extracting sqlite blob data".

That is a fine idea, but I figure that your approach is wrong.

If you are extracting a piece of data from an SQLite DB, you should use the Perl DBI (which automatically will load support for SQLite) to do that instead of parsing the binary file yourself.

An important thing is to have a good SQLite DB viewer. I use a Firefox plug-in, Firefox SQLite Manager. There are other possibilities.

I think what you want to do are SQL statement(s) that will read the BLOB's (Binary Large Object) as a single Perl variable, like $blob. Once you have this .png image or whatever this BLOB represents, then display it.

I highly recommend against parsing the SQLite binary yourself.


In reply to Re: help figuring out what a section of script does by Marshall
in thread help figuring out what a section of script does by michaelsingleton

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.