"RokuMarkn" wrote:
Argh. Squirreltown, I'm sorry, I was trying to reply to your posting above and instead I edited it. Feel free to restore what you originally said.
"squirreltown" wrote:
"squirreltown" wrote:
Sending a 1.5mb png from pkg:/ takes about 1.2 seconds for URL transfer to return successful. (Async Post From File)
Sending a 1.2 mb getpng() file from tmp:/ takes about 5-6 seconds for for the temp.rgba file to show on the NAS indicating the transfer is done.
It sounds like you're testing for completion in two different ways here. How long does it take for an AsyncPostFromFile to return success when you send the 1.2 MB getpng file?
And how long does it take for the file to show up on the NAS when you send a file from pkg:?
In your second case, if you're not looking at the AsyncPost result, you may just be measuring some lag in the NAS reporting that it has actually received the file after the transfer is done.
--Mark
'
LOL! Who knows what I said! The reason i'm using two metrics is that I don't have the PHP code to receive the
image file properly ( havn't found what i need on StackOverload) and URL transfer won't return until the getpng() or bytearray file is
processed by the PHP file. You seem to be skeptical of what I'm saying but there is a real easy explanation that is sort of implied in RokuKC's answer and my experience here,- the GetPNG() file is being sent as text, not as an image file. This is why my PHP file still works by just changing jpg to png - it's still a stream, not an image file. Wrong?
$owner = $_GET['owner'];
$sizex = $_GET['sizew'];
$sizey = $_GET['sizeh'];
$in = fopen('php://input', 'r');
$out = fopen("$owner.rgba", 'w');
stream_copy_to_stream($in, $out);
exec("convert -size {$sizex}x{$sizey} -depth 8 -adaptive-resize 1920x1080 $owner.rgba $owner.png");
Kinetics Screensavers