Woohoo!
You rock, Gerhard. That's inspired. I'm sure I can sort this out now.
Both you and Tim have been an enormous help.
Cheers, Al.
(Oh, and Tim: tip noted. I feel bad about not posting complete code- I
do normally (not in python), but can't for this one. Thanks for wading
your way through it
[EMAIL PROTECTED] wrote:
Excellent. Got that working. Now, how to get the pickled data out of
the database?
I'm trying to use cPickle.loads(data) (code attached), and I get a:
"TypeError: loads() argument 1 must be string, not list" [...]
[...]
c.execute("select Images from FileURLInfo where URL
[EMAIL PROTECTED]
| I'm trying to use cPickle.loads(data) (code attached), and I get a:
| "TypeError: loads() argument 1 must be string, not list"
|
| Is there a workaround for this? I've tried converting the
| List of files
| to a String before cPickling it, but the same result (expected).
OK,
Excellent. Got that working. Now, how to get the pickled data out of
the database?
I'm trying to use cPickle.loads(data) (code attached), and I get a:
"TypeError: loads() argument 1 must be string, not list"
Is there a workaround for this? I've tried converting the List of files
to a String befor
[EMAIL PROTECTED]
| I'm a long-time lurker and (I think) first time poster.
| Only relatively new to python, and I'm trying to get pysqlite to work
| with binary data, and having a tough time of it.
| I want to set up a table with:
| - a URL,
| - some filenames related to that URL,
| - and some si
[EMAIL PROTECTED] wrote:
> Hi there.
>
> I'm a long-time lurker and (I think) first time poster.
> Only relatively new to python, and I'm trying to get pysqlite to work
> with binary data, and having a tough time of it. [...]
It seems to me that you're using pysqlite correctly. Where exactly is
Hi there.
I'm a long-time lurker and (I think) first time poster.
Only relatively new to python, and I'm trying to get pysqlite to work
with binary data, and having a tough time of it.
I want to set up a table with:
- a URL,
- some filenames related to that URL,
- and some simple generated HTML.