From: Sriram K. <sr...@sd...> - 2010-02-09 03:14:39
|
Hi Charles, The getOutputAsBase64ByName() is mostly there for legacy purposes. When files are transported as Base64 encoded binary between client and server, they are loaded into memory by the server. We noticed that this caused the server to get extremely sluggish - the preferred approach is now to use MIME attachments for file uploads, and regular HTTP downloads the way you are using right now. That said, you need a job id and a file name to use the above method. Blocking jobs typically don't return a job ID, but you can get the ID from the baseURL (it is everything after the last "/" - of the form "app..."). Thanks, Sriram On Feb 8, 2010, at 5:40 PM, Charles Grant wrote: > Hi, > > I'm using the Pdb2pqrClient.py and pdb2pqrclient.pl scripts as > templates for writing scripts that submit jobs to the MEME Opal > service. I notice that those scripts contain commented out code for > retrieving the output files using getOutputAsBase64ByName(). I was > able to take that code and extend it to retrieve all the output > files for a MEME job that had been submitted as a polling job. > However it didn't seem to work for a blocking job. The return value > for a blocking job doesn't seem to explicitly contain the jobID > value seems to be needed to build the request object for the call to > getOutputAsBase64ByName(). However, I am able to retrieve the output > files for both polling and blocking jobs using urllib and the urls > returned in the _outputFile array. > > Are there reasons for preferring getOutputAsBase64ByName() over say, > urllib.FancyURLopener()/read()? If so is there a way to call > getOutputAsBase64ByName() after a blocking job? > > > Thanks, > > Charles > > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term > contracts > Personal 24x7 support from experience hosting pros just a phone call > away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Opaltoolkit-users mailing list > Opa...@li... > https://lists.sourceforge.net/lists/listinfo/opaltoolkit-users |