Re: [Tutor] XML-RPC data transfers.

2007-01-11 Thread Hugo González Monteverde
Luke Paireepinart wrote: > But the main strategy is to get the data out of the ImageGrab object. > one way is stated above - use the save method to write to a file. > another possible way is to create a filelike class, implementing 'tell' > 'seek' and 'write' methods, that just collects all the

Re: [Tutor] XML-RPC data transfers.

2007-01-01 Thread Chris Hengge
The main reason I haven't posted to more then one list is because I'm trying to avoid looking obnoxious, as well as getting redundant information, or having to keep answering the same things mutliple times... I might ask this over there though after I try a few more things. Thanks. On 1/1/07, Tim

Re: [Tutor] XML-RPC data transfers.

2007-01-01 Thread Ziad Rahhal
Did you look at SOAPpy? if you are interested in doing what you want to do through web-services, then SOAPpy might be what you are looking for. It does support XML-RPC. I have developed a working example that sends an image from a Java Web-service and receives the image at a SOAPpy client that use

Re: [Tutor] XML-RPC data transfers.

2007-01-01 Thread Tim Golden
Chris Hengge wrote: > Going off your thoughts that I'm asking to do something outside the > realm of the readers here, is there a better place to ask this kind of > oddball stuff? I've looked around and haven't been able to find any > support for XML-RPC (might be a good sign to drop it and move

Re: [Tutor] XML-RPC data transfers.

2007-01-01 Thread Alan Gauld
"Chris Hengge" <[EMAIL PROTECTED]> wrote > Going off your thoughts that I'm asking to do something outside the > realm of > the readers here, is there a better place to ask this kind of > oddball stuff? > I've looked around and haven't been able to find any support for > XML-RPC I'd try the XM

Re: [Tutor] XML-RPC data transfers.

2006-12-31 Thread Chris Hengge
Boo bloatware! Don't even mention those... heheh.. I even turn off most the services on my system to keep things clean.. But thats another story.. Going off your thoughts that I'm asking to do something outside the realm of the readers here, is there a better place to ask this kind of oddball stu

Re: [Tutor] XML-RPC data transfers.

2006-12-31 Thread Alan Gauld
"Chris Hengge" <[EMAIL PROTECTED]> wrote > method is a good one. Much like your own answers to most of my > questions, > you state several ways varying from "probably works" to "how I'd try > to do > it". Personally, I'd rather understand more of the "how I know it > works" One reason may be t

Re: [Tutor] XML-RPC data transfers.

2006-12-30 Thread Kent Johnson
Luke Paireepinart wrote: > But the main strategy is to get the data out of the ImageGrab object. > one way is stated above - use the save method to write to a file. > another possible way is to create a filelike class, implementing 'tell' > 'seek' and 'write' methods, that just collects all the d

Re: [Tutor] XML-RPC data transfers.

2006-12-30 Thread Kent Johnson
Chris Hengge wrote: > if I'm trying to transmit a 'file' that is actually saved on the HD, the > code from the link in my first post works fine (reading in the file > using binary mode access). My problem is that I'm trying to figure out > how to transfer data that isn't yet saved to the drive,

Re: [Tutor] XML-RPC data transfers.

2006-12-30 Thread Chris Hengge
First off, thanks for the info luke, I'll give these idea's a shot. Second, I fully understand the wow factor from figuring out stuff on my own, but I also work fulltime and attend roughly 20 credits of college a term, while taking care of my family/homelife and this xmas break is one of the few c

Re: [Tutor] XML-RPC data transfers.

2006-12-30 Thread Luke Paireepinart
Chris Hengge wrote: > This works... > d = xmlrpclib.Binary(open("C:\\somefile.exe", "rb").read()) > > What I need is more like > screenShot = ImageGrab.Grab() > d = xmlrpclib.Binary(screenShot) because screenShot is not binary data. It's an instance of the class Image.

Re: [Tutor] XML-RPC data transfers.

2006-12-30 Thread Luke Paireepinart
Chris Hengge wrote: > if I'm trying to transmit a 'file' that is actually saved on the HD, > the code from the link in my first post works fine (reading in the > file using binary mode access). My problem is that I'm trying to > figure out how to transfer data that isn't yet saved to the drive,

Re: [Tutor] XML-RPC data transfers.

2006-12-30 Thread Chris Hengge
This works... d = xmlrpclib.Binary(open("C:\\somefile.exe", "rb").read()) What I need is more like screenShot = ImageGrab.Grab() d = xmlrpclib.Binary(screenShot) This doesn't work though. On 12/30/06, Kent Johnson <[EMAIL PROTECTED]> wrote: Chris Hengge wrote: > I might have been unclear, or

Re: [Tutor] XML-RPC data transfers.

2006-12-30 Thread Chris Hengge
if I'm trying to transmit a 'file' that is actually saved on the HD, the code from the link in my first post works fine (reading in the file using binary mode access). My problem is that I'm trying to figure out how to transfer data that isn't yet saved to the drive, because I'm wanting to be able

Re: [Tutor] XML-RPC data transfers.

2006-12-30 Thread Kent Johnson
Chris Hengge wrote: > I might have been unclear, or this tid-bit might have been lost in the > thread... but I'm trying to send directly from ImageGrab.Grab(), without > saving the data as a file. Thats where I'm getting hung... If it try to > send an actual stored file, I have no problem. Is th

Re: [Tutor] XML-RPC data transfers.

2006-12-29 Thread Chris Hengge
I might have been unclear, or this tid-bit might have been lost in the thread... but I'm trying to send directly from ImageGrab.Grab(), without saving the data as a file. Thats where I'm getting hung... If it try to send an actual stored file, I have no problem. Is this maybe impossible? My though

Re: [Tutor] XML-RPC data transfers.

2006-12-29 Thread Lee Harr
>http://www.velocityreviews.com/forums/t343990-xmlrpc-send-file.html > >Using this example I get error's about 'expected binary .read(), but got >instance instead. I assume you are using this ... >d = xmlrpclib.Binary(open("C:\\somefile.exe").read()) Are you using windows? I think you would n

Re: [Tutor] XML-RPC data transfers.

2006-12-28 Thread Alan Gauld
"Chris Hengge" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm trying to figure out how to send data using XML-RPC. Currently > my target > is to send a PIL imagegrab.grab() from one side of the connection to > the > other. Any particular reason to use RPC here? This will like

[Tutor] XML-RPC data transfers.

2006-12-28 Thread Chris Hengge
I'm trying to figure out how to send data using XML-RPC. Currently my target is to send a PIL imagegrab.grab() from one side of the connection to the other. I've got stuff like numbers and strings going back and forth, so I know my connection is working, but I'm not sure how to send the image. 'S