post an image
carambola at aliceposta.it
Fri Jan 28 02:23:09 EST 2005
Thank you for you help. I will make a try and then I will let you know.
Giovedì, 27 Gen 2005, alle 23:14 Europe/Rome, Jan Schenkel ha scritto:
> --- paolo <carambola at aliceposta.it> wrote:
>> Do you know how can I post an image to a revCGI
>> stack and have this
>> image to be saved on the cgi-bin folder?
>> Ciao Paolo Mazza
> Hi Paolo,
> One option is to send the image data in base64
> encoding ; and then base64 decode it again on the
> other side.
> Or you could send the raw data, but change the
> httpHeaders before you POST the data, so the webserver
> and the cgi-script know it's image data :
> put image 1 into tImageData
> set the httpHeaders to "Content-type: image/png"
> post tImageData to URL tCGIScriptURL
> Then from your cgi-script, you can check the
> CONTENT_TYPE environment variable.
> Hope this helped,
> Jan Schenkel.
> Quartam - Tools for Revolution
> "As we grow older, we grow both wiser and more foolish at the same
> time." (La Rochefoucauld)
> Do you Yahoo!?
> All your favorites on one personal page Try My Yahoo!
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the Use-livecode