blob problems in pysqlite

2006-04-26 Thread aldonnelley
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.

Re: blob problems in pysqlite

2006-04-26 Thread aldonnelley
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

Re: blob problems in pysqlite

2006-04-27 Thread aldonnelley
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

Strange problem with Tkinter... photos don't show on first iteration.

2006-08-14 Thread aldonnelley
Hi all. Just having a weird problem with tkinter. I'm trying to make a gui that shows results from an image search, with a "forward" and "back" button so the user can compare results from different pages. All that's working fine... The problem I'm having is that the images don't show onscreen the

Re: Strange problem with Tkinter... photos don't show on first iteration.

2006-08-14 Thread aldonnelley
Yup, That's the problem. Can't thank you enough. I'd read about Tkinter "garbage collection", but, like car crashes and lung cancer, you never think it's going to happen to you... thanks once again. Cheers, Al. Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > Just having a weird problem with

Re: Strange problem with Tkinter... photos don't show on first iteration.

2006-08-14 Thread aldonnelley
And I say once again: I can't thank you enough. YOU ROCK! cheers, al. (Just changed the code in my main program, and it WORKS! The previous thankyou was only a preliminary.) ps I really like python, too. :) [EMAIL PROTECTED] wrote: > Yup, > That's the problem. Can't thank you enough. > I'd read

Is it possible to get image size before/without downloading?

2006-07-22 Thread aldonnelley
Hi there: a bit of a left-field question, I think. I'm writing a program that analyses image files downloaded with a basic crawler, and it's slow, mainly because I only want to analyse files within a certain size range, and I'm having to download all the files on the page, open them, get their size

Re: Is it possible to get image size before/without downloading?

2006-07-22 Thread aldonnelley
Thanks Josiah I thought as much... Still, it'll help me immensely to cut the downloads from a page to only those that are within a file-size range, even if this gets me some images that are out-of-spec dimensionally. Cheers, Al. (Oh, and if anyone still has a bright idea about how to get image d