I'm not really a PHP person. A quick search points me at the following...

http://us.php.net/manual/en/reserved.variables.httprawpostdata.php
http://us.php.net/manual/en/wrappers.php.php
http://us.php.net/manual/en/function.file.php

php://input allows you to read raw POST data. It is a less memory
intensive alternative to $HTTP_RAW_POST_DATA and does not need any
special php.ini directives. php://input is not available with
enctype="multipart/form-data"

if ($method == "POST" || $method == "PUT") {
  $bodyAsString = @file_get_contents('php://input');
  $bodyAsArray = @file('php://input', ... some options go here ...);
}

Hope this helps.

On Wed, Dec 3, 2008 at 5:07 PM, Chris <[EMAIL PROTECTED]> wrote:
>
> Hi guys, i've done a search on here but couldn't find an answer for my
> questions so here it goes:
>
> Does anyone have a script (php preferably) for dealing with receiving
> blob data from a beta.request send. Basically, while offline i capture
> file blobs using desktop.openFiles() and store them in the resource
> store. Then when they go back online, I get the blobs out of the
> resource store using resourceStore.getAsBlob() method. I want to then
> send these blobs using the HTTPRequest either in slices or whole files
> to the server. This is where im stuck, im not totally sure what the
> script file should do on the server side. How will it receive the
> data? Its not the same as a file submit form, where the file is
> available through the $_FILES variable.
>
> Any help will be truely appreciated
>

Reply via email to