Hello Monks!
I’ve been away from perl (and programming in general) for a looong time — so I’m a bit rusty :-(
I have an SQLite database containing jpg blobs.
I’d like to extract them and then pass each jpg data blob (one at a time) into Image::Epeg to create thumbnails.
Unfortunately, Image::Epeg-new(\$jpg_data); isn’t working. (It works ok when reading from a file, but not from a “data ref”).
What I’d like to avoid is extracting the blob to a scalar, writing that to disk and then opening the file from Epeg. Is it possible to extract into a memory-mapped file (one created in a virtual file system) directly? Or something like that?
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.