05-31-2011 02:40 PM
I am currently sending a URL to call a .php file on a server. The php file is used to prompt a series of commands. The server is located on another computer and the php operations normally send a compressed zip folder to my computer if using a browser. It brings up the normal download dialog box acknowledging a download to my computer. If I call the php file through LabVIEW, it sends back a binary file or text that contains all of the contents of a compressed folder - only in an unreadable format (see attached). I believe the web browsers have something built in that acknowledges the files and brings up the download dialog box, that I am missing in my LabVIEW program. I am pretty new at communicating with a webserver in Labview. Is there any way for Labview to take this binary text and convert it to a zip? Am I missing a step in order to download the zip folder to my computer with LabVIEW? Attached is the script that I get in response in Labview.
Solved! Go to Solution.
05-31-2011 02:47 PM
06-01-2011 09:06 AM
All files are binary. It's a misconception that there are "text" files. Files are just a sequence of bytes, regardless of the extension. In your case you should be able to take the array you get from the method and wire it directly to a Write to Binary File function. Have you tried that?
06-02-2011 08:42 AM
Prefect! Thanks.