have you tried attaching event listeners to the open and complete events of your urlloader instance then tracing the MIME type of the downloaded data (for the complete event)? This way youll see if a download actually commences (on open) and if the downloaded data is decoded properly (on complete). It is possible that the dataformat of the urlloader instance data is not what you require. just a thought
--- Dimitrios Gianninas <[EMAIL PROTECTED]> wrote: > Close, now my servlet gets called, but the flash > player never prompts me where to save my file, so in > essence, nothing is downloaded. > > Maybe my player is foubared! > > Dimitrios Gianninas > RIA Developer > Optimal Payments Inc. > > > ________________________________ > > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of > dubreeze2001 > Sent: Tuesday, December 12, 2006 10:53 PM > To: [email protected] > Subject: [flexcoders] Re: file download doesnt work? > > > > Dimitrios, > > This should work for you: > import flash.net.*; > > var url:String; > url="http://localhost:7001/billing/servlet/FileSvlt?operation= > <http://localhost:7001/billing/servlet/FileSvlt?operation=> > "; > url +="DOWNLOAD&fileId=2"; > > var urlRequest:URLRequest = new URLRequest(url); > sendToURL(urlRequest); > > Tony D > > --- In [email protected] > <mailto:flexcoders%40yahoogroups.com> , "Dimitrios > Gianninas" > <[EMAIL PROTECTED]> wrote: > > > > Yup tried that too :) I've tried GET, POST and > using the servername, > localhost and my direct IP, no go. > > > > If I call my servlet directly in a browser, the > download works like > a charm: > > > http://localhost:7001/billing/servlet/FileSvlt?operation=DOWNLOAD&fileID=5 > <http://localhost:7001/billing/servlet/FileSvlt?operation=DOWNLOAD&fileID=5> > > > > > I'm sure its something very very small.., any kind > of debug I can > turn on? > > > > Dimitrios Gianninas > > RIA Developer > > Optimal Payments Inc. > > > > > > ________________________________ > > > > From: [email protected] > <mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected] > <mailto:flexcoders%40yahoogroups.com> ] > On Behalf Of Brian Holmes > > Sent: Tuesday, December 12, 2006 4:34 PM > > To: [email protected] > <mailto:flexcoders%40yahoogroups.com> > > Subject: RE: [flexcoders] file download doesnt > work? > > > > > > > > Not Sure if this will work Dimitrios, > > But I seem to remember having similar issues and > reading somewhere > that the constructor of the Url Request expected a > url as a string. > > > > var req:URLRequest = new > URLRequest("http://localhost > <http://localhost/> : 7001/billing/ servlet/FileSvlt > ") ; > > req.method = URLRequestMethod. GET; > > req.data = new URLVariables("operation=DOWNLOAD > "); > > try { > > var fr:FileReference = new FileReference( ); > > fr.download( req ); > > } > > catch( e:Error ) { > > trace( "Download error: " + e.message ); > > } > > > > > > > > I double checked some code of mine and that's > exactly how i got it > working. Anyways, like I said, not sure if it will > help, > > You probably have already tried it. > > > > Brian.. > > > > ________________________________ > > > > From: [email protected] > <mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected] > <mailto:flexcoders%40yahoogroups.com> ] > On Behalf Of Dimitrios Gianninas > > Sent: Tuesday, December 12, 2006 2:22 PM > > To: [email protected] > <mailto:flexcoders%40yahoogroups.com> > > Subject: RE: [flexcoders] file download doesnt > work? > > > > > > Yup tried that too... I'm perplexed! > > > > Dimitrios Gianninas > > RIA Developer > > Optimal Payments Inc. > > > > > > ________________________________ > > > > From: [email protected] > <mailto:flexcoders%40yahoogroups.com> > [mailto:[email protected] > <mailto:flexcoders%40yahoogroups.com> ] > On Behalf Of Valy Sivec > > Sent: Tuesday, December 12, 2006 10:26 AM > > To: [email protected] > <mailto:flexcoders%40yahoogroups.com> > > Subject: Re: [flexcoders] file download doesnt > work? > > > > > > > > How about changing reg.method="POST" instead GET?. > > > > Valy > > > > > > > > > > ----- Original Message ---- > > From: Dimitrios Gianninas > <[EMAIL PROTECTED]> > > To: [email protected] > <mailto:flexcoders%40yahoogroups.com> > > Sent: Tuesday, December 12, 2006 9:28:40 AM > > Subject: RE: [flexcoders] file download doesnt > work? > > > > > > > > Ok I switch the code around a bit and it looks > more like this now: > > > > var req:URLRequest = new URLRequest() ; > > req.url = "http://localhost: 7001/billing/ > servlet/FileSvlt "; > > req.method = URLRequestMethod. GET; > > req.data = new URLVariables("operation=DOWNLOAD > "); > > try { > > var fr:FileReference = new FileReference( ); > > fr.download( req ); > > } > > catch( e:Error ) { > > trace( "Download error: " + e.message ); > > } > > > > > > But it still doesn't work, my Java servlet doesn't > get called at > all. I have log messages in the service(), doGet() > and doPost() > methods and I see nothing. My upload works like a > charm. > > > > > > Dimitrios Gianninas > > RIA Developer > > Optimal Payments Inc. > > > > > > ________________________________ > > > > From: [EMAIL PROTECTED] ups.com > [mailto:flexcoders@ yahoogroups. > com] On Behalf Of Dimitrios Gianninas > > Sent: Monday, December 11, 2006 3:15 PM > === message truncated === ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com

