how to work with binary data inside a Rev cgi script ?

Björnke von Gierke bvg at mac.com
Mon Apr 7 12:44:15 EDT 2008


A few things that can go wrong:

How do you merge the data from the cgi, and the one from the php?
Do you perchance use "put url ("file:" & thePath) instead of "put url  
("binfile:" & thePath)"?
Do you set the header in the cgi correctly, assuring the browser/pdf  
reader knows that you're sending binary, and not textual data?
Are you sure all binary data uses the correct byte order?
etc.

You might be sure there is no problem, but that's no guarantee that it  
actually all works without error ;-)

Have fun
Björnke

On 7 Apr 2008, at 17:39, jbv wrote:
> Hi folks,
>
> I'm trying to insert binary data (generated by a php script via a  
> shell
> call)
> on the fly into some other data generated by my Rev cgi script to  
> form a
>
> pdf file.
> I'm 100% sure that the binary data from php isn't corrupted, but  
> once it
>
> gets inserted in the other data, then I get an error when attempting  
> to
> read
> the pdf code in the acrobat plugin of my browser... And I'm also sure
> that
> the pdf code generated inside the Rev cgi is correct...
> Hence my question : how to work with binary data inside a cgi script
> without
> corrupting it ?
>
> I'm on a Linux server with Rev cgi 2.5.
>
> thanks,
> JB
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the Use-livecode mailing list