Passing file from geoprocessing script to geoprocessing service

1111
1
07-15-2011 04:30 PM
MichaelPorter1
New Contributor III
I have a serverside python based geoprocessing service that takes a file as its one input parameter.  How can I call this service from a python based geoprocesing script running on the desktop?  What type of argument should I pass?  How should I read that argument on the server side?  The file is a binary file (think jpg or zip) not a text file and the server does not have access to the desktop except via service calls.
Tags (2)
0 Kudos
1 Reply
StacyRendall1
Occasional Contributor III
Michael,

I don't know the answer to your question, but try reading up on the Python Pickle module; it lets you convert stuff into objects, which can then be passed between things... This, obviously, has a huge number of applications, but you should be able to find an example on the net of doing what you need; just remember to search 'Python Pickle', not 'arcpy Pickle'.

Good luck!
0 Kudos