When using CFHTTP to get a file, there is a "getasbinary" attribute. Try setting this to "true" and see if it helps...
Andrew Scott wrote: > Steve, > > I think you might be right, but I can't say that I have done what you are > doing. But cffile should be able to save it has a binary under normal > circumstances. But with CFHTTP it might be seen as a character/byte stream > rather than a binary stream. > > Wouldn't hurt to try saving it as a binary, and see how you go. Would be > interested to know how you go with that. > > > > Andrew Scott > Senior Coldfusion Developer > Aegeon Pty. Ltd. > www.aegeon.com.au > Phone: +613 8676 4223 > Mobile: 0404 998 273 > > > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf > Of Steve Onnis > Sent: Thursday, 14 June 2007 10:58 AM > To: [email protected] > Subject: [cfaussie] Re: Saving a pushed ZIP file > > > Yeh just HTTP > > The current process pushes the file to the browser for download. What I am > trying to do it let CFHTTP pull the file down, read the CFHTTP.fileContent > data, write it to the file system, unzip the ZIP file and process the CSV > file in it. > > I am just not sure if I need to write the file in a particular way, like a > byte stream or something. > > Steve > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf > Of Mark Stanton > Sent: Thursday, 14 June 2007 8:05 AM > To: [email protected] > Subject: [cfaussie] Re: Saving a pushed ZIP file > > > Don't think you should have to do anything special. How is the file being > sent? Over HTTP? > > On 6/14/07, Steve Onnis <[EMAIL PROTECTED]> wrote: > > > > I am trying to save a zip file that is being provided from another > > server but when I am writing it to the system the zip file is saved, > > the file in it is there but the zipped file is zero bytes and > > corrupted. Is there a certain way you have to save these types of > compressed file? > > > > > > Steve Onnis > > > > > > > > > > > > -- > Mark Stanton > Gruden Pty Ltd > http://www.gruden.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
