Re: [Lazarus] Translating php://input into fcl-web

2014-08-24 Thread silvioprog
On Sun, Aug 24, 2014 at 8:37 AM, "Leonardo M. Ramé" wrote: > On 24/08/14 07:31, "Leonardo M. Ramé" wrote: > >> On 24/08/14 00:08, silvioprog wrote: >> >>> Oops, >>> >>> On Sun, Aug 24, 2014 at 12:02 AM, silvioprog >> > wrote: >>> >>> On Sat, Aug 23, 2014 at 9:07 P

Re: [Lazarus] Translating php://input into fcl-web

2014-08-24 Thread Leonardo M. Ramé
On 24/08/14 07:31, "Leonardo M. Ramé" wrote: On 24/08/14 00:08, silvioprog wrote: Oops, On Sun, Aug 24, 2014 at 12:02 AM, silvioprog mailto:silviop...@gmail.com>> wrote: On Sat, Aug 23, 2014 at 9:07 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: [...] Thank

Re: [Lazarus] Translating php://input into fcl-web

2014-08-24 Thread Leonardo M. Ramé
On 24/08/14 00:08, silvioprog wrote: Oops, On Sun, Aug 24, 2014 at 12:02 AM, silvioprog mailto:silviop...@gmail.com>> wrote: On Sat, Aug 23, 2014 at 9:07 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: [...] Thank you very much Silvio for testing. My

Re: [Lazarus] Translating php://input into fcl-web

2014-08-23 Thread silvioprog
Oops, On Sun, Aug 24, 2014 at 12:02 AM, silvioprog wrote: > On Sat, Aug 23, 2014 at 9:07 PM, "Leonardo M. Ramé" > wrote: > >> [...] >> Thank you very much Silvio for testing. >> >> My setup is XUbuntu 14.04 64bits, and Apache/2.4.7 (Ubuntu). Also I'm >> testing on Firefox 31 For Ubuntu with th

Re: [Lazarus] Translating php://input into fcl-web

2014-08-23 Thread silvioprog
On Sat, Aug 23, 2014 at 9:07 PM, "Leonardo M. Ramé" wrote: > [...] > Thank you very much Silvio for testing. > > My setup is XUbuntu 14.04 64bits, and Apache/2.4.7 (Ubuntu). Also I'm > testing on Firefox 31 For Ubuntu with the latest version of Flash Plugin. > > What confuses me is the same setu

Re: [Lazarus] Translating php://input into fcl-web

2014-08-23 Thread Leonardo M. Ramé
On 23/08/14 20:54, silvioprog wrote: On Sat, Aug 23, 2014 at 8:09 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: > I made an example using fcl-web (without Brook) and the problem persists. [...] Strange. I made some changes to work here in my PC and it worked fine: http://tempsend.

Re: [Lazarus] Translating php://input into fcl-web

2014-08-23 Thread silvioprog
On Sat, Aug 23, 2014 at 8:09 PM, "Leonardo M. Ramé" wrote: > I made an example using fcl-web (without Brook) and the problem persists. [...] Strange. I made some changes to work here in my PC and it worked fine: http://tempsend.com/63FEC90D7A Listen my ugly "audio3.wav" file. :-P Lazarus 1.2.4

Re: [Lazarus] Translating php://input into fcl-web

2014-08-23 Thread Leonardo M. Ramé
On 23/08/14 18:40, "Leonardo M. Ramé" wrote: On 23/08/14 17:18, silvioprog wrote: On Sat, Aug 23, 2014 at 3:12 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: Hi, I'm trying to translate this PHP code to fcl-web (actually brookframework): The difficult part is the l

Re: [Lazarus] Translating php://input into fcl-web

2014-08-23 Thread Leonardo M. Ramé
On 23/08/14 18:40, "Leonardo M. Ramé" wrote: On 23/08/14 17:18, silvioprog wrote: On Sat, Aug 23, 2014 at 3:12 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: Hi, I'm trying to translate this PHP code to fcl-web (actually brookframework): The difficult part is the l

Re: [Lazarus] Translating php://input into fcl-web

2014-08-23 Thread Leonardo M. Ramé
On 23/08/14 17:18, silvioprog wrote: On Sat, Aug 23, 2014 at 3:12 PM, "Leonardo M. Ramé" mailto:l.r...@griensu.com>> wrote: Hi, I'm trying to translate this PHP code to fcl-web (actually brookframework): The difficult part is the line with "file_get_contents('php://__input

Re: [Lazarus] Translating php://input into fcl-web

2014-08-23 Thread silvioprog
On Sat, Aug 23, 2014 at 3:12 PM, "Leonardo M. Ramé" wrote: > Hi, I'm trying to translate this PHP code to fcl-web (actually > brookframework): > > $content = file_get_contents('php://input'); > $fh = fopen('output.wav', 'w') or die("can't open file"); > fwrite($fh, $content); > fclose($fh); > ?>

[Lazarus] Translating php://input into fcl-web

2014-08-23 Thread Leonardo M. Ramé
Hi, I'm trying to translate this PHP code to fcl-web (actually brookframework): The difficult part is the line with "file_get_contents('php://input')", it contains the whole POST content as binary. What I already did was this: procedure TActAudio.Post; var lWav: TMemoryStream; begin lW