Thank you very much, Fredrik. Your code and suggestion worked
perfectly. I haven't benchmarked the plain HTTP post vs Binary
wrapper, but strangely even using the naive Binary wrapper in Python
sends files much faster than how Java + Axis wraps byte arrays in SOAP
messages.
Jeremy
--
http://ma
OK, I posted my previous message before I saw your reply on how to
handle the server side. On the client side, should I use
httplib.HTTPConnection.request() to upload the data or can I do this
through xmlrpc.ServerProxy objects?
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> the XML-RPC protocol uses HTTP POST, so if you can handle XML-RPC, you
> should be able to handle any POST request. what server are you using ?
I need some clarification of your suggestion. Instead of sending URLs,
I could read the file as a string, create a Binary object
>What server are you using?
Just SimpleXMLRPCServer from the standard library.
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
>why not just use an ordinary HTTP POST request ?
Sorry for such a simple question, but how would I do this? XML-RPC
runs on top of HTTP, so can I do a POST without running a separate HTTP
server?
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
I'm currently implementing an XML-RPC service in Python where binary
data is sent to the server via URLs. However, some clients that need
to access the server may not have access to a web server, and I need to
find a solution. I came up with the idea of embedding a simple HTTP
server in the XML-R
Thanks guys. I didn't realize that hidden form fields were so easy to
use.
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
I need to update a CGI script I have been working on to perform
validation of input files. The basic idea is this:
1.) HTML page is served
2.) User posts file and some other info
3.) Check file for necessary data
* If data is missing, then post a 2nd page requesting needed data
* If data
I tried following your simple example (I already had something similar)
but with no luck. I'm completely stumped as to why this doesn't work.
I even tried manually scaling the data to be in the range 0-255 out of
desperation. The data is definitely contiguous and 32 bit floating
point. At this p
>If you can bear having two copies in memory, Image.frombuffer()
>generally does the trick.
Also, does PIL have a contrast / scale option that is similar to zscale
in ds9 or equalize in Image Magick?
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
>If you can bear having two copies in memory, Image.frombuffer()
>generally does the trick.
What arguments do you pass to this function, and do you flatten the
array from the FITs image? I this but got garbage out for the image.
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
>http://www.stsci.edu/resources/software_hardware/pyfits
I know and love PyFits, but I need to be able to do draw shapes on a
FITs image (and perhaps some other operations), and I don't believe
that PyFits allows these kinds of operations. It might be possible to
import the data into a numarray o
I'm trying to read in a FITs image file for my research, and I decided
that writing a file decoder for the Python imaging library would be the
easiest way to accomplish this for my needs. FITs is a raw data format
used in astronomy.
Anyway, I followed the example in the PIL documentation online,
I added enctype="multipart/form-data" to the tag, and that
seemed to solve it. Thanks.
Jeremy
--
http://mail.python.org/mailman/listinfo/python-list
I'm currently writing my first CGI script (in Python), and I keep
getting an error I don't know how to address. I'm not sure if this is
a Python or Apache error, but I suspect it's an Apache config thing.
Anyway, in my code I need to upload a file, so in my HTML there's a
line like
File to upload
>You probably shouldn't post such large pieces of code to the list.
OK.
>You mean a docstring on the module object itself?
Actually, I meant docstrings to the module and the functions, objects,
methods, whatever else in the module. My code was derived from the
Python Cookbook, which left that p
16 matches
Mail list logo