sure --

test.php:

<?php

 $file = "/tmp/t.png";
 $msg = $_REQUEST[msg];
 $type = $_REQUEST["POST"];
 $image = $GLOBALS['HTTP_RAW_POST_DATA'];
 echo "msg=$msg;type=$type;len=".file_put_contents($file, $image);

?>



jmol:

print load("http://your.server/test.php?POST?_PNGJBIN_&msg=OK")

result:
msg=OK;type=_PNGJBIN_; len=19564


Bob

On Fri, Sep 21, 2012 at 12:12 PM, Paul Pillot <paul.pillot@ac-orleans-tours.fr> wrote:


Alex beat me to it. Right. Sorry, it's not the WRITE command. It's this:

Var x = load("http://xxx.xxx.xxx/servlet/?POST?_PNGJBIN_")

You  will get a return from your server, but in the process Jmol will send the PNGJ file in the  POST. I can send you the PHP side of this if you want to see it.

Bob

It would be very valuable for me to have a look at the PHP code. I've made several trials some time ago, but could not find where the data is in $_POST 
Paul


------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users




--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900