[flexcoders] Re: Can Flex save anything to desktop or only AIR?

2007-12-21 Thread rueter007
not really. it is much simple. 

  var appUrl:URLRequest = new URLRequest();
  appUrl.url = "http://blah.com/blah/blahblah";;
  appUrl.method = URLRequestMethod.POST;
  
  var variables:URLVariables = new URLVariables();
  variables.data = data;// file data
  variables.fName = name;// file name
  variables.fType = type;// file type  ex: text/csv
  appUrl.data = variables;
  
  flash.net.navigateToURL(appUrl, "_top");

you will send the data to the server and let the browser handle the
data that is returned. you do not have to wait for the data to
download or anything else. your job is done right here.
SharedObjects are not an ideal solution for this case.

- venkat
http://www.venkatj.com

--- In flexcoders@yahoogroups.com, "Rick Schmitty" <[EMAIL PROTECTED]> wrote:
>
> but that would involve sending the binary data to the server, waiting
> for the result, then using flash to initiate the download from the
> server, right?
> 
> 
> 
> On Dec 21, 2007 1:23 PM, rueter007 <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> >
> > you can save binary data from a web application with the help of a
server.
> >
> >
> >
> >  --- In flexcoders@yahoogroups.com, "Rick Schmitty"  wrote:
> >  >
> >  > Is it possible to have flex save anything in its memory (bitmaps,
> >  > sound streams, video streams) to the desktop (or prompt user to
save
> >  > somewhere) or is saving of binary data only in apollo?
> >  >
> >
> >
>




Re: [flexcoders] Re: Can Flex save anything to desktop or only AIR?

2007-12-21 Thread ben gomez farrell
It doesn't really have to be that many steps, but you're essentially 
correct.
You can send the binary data to the server via a POST, and the result of 
the POST call can be a "save to:" link.
But yes, it has to go all the way up to the server and back down.  My 
point is that it can all be part of the same web call.
ben

Rick Schmitty wrote:
>
> but that would involve sending the binary data to the server, waiting
> for the result, then using flash to initiate the download from the
> server, right?
>
> On Dec 21, 2007 1:23 PM, rueter007 <[EMAIL PROTECTED] 
> > wrote:
> >
> >
> >
> >
> >
> >
> > you can save binary data from a web application with the help of a 
> server.
> >
> >
> >
> > --- In flexcoders@yahoogroups.com 
> , "Rick Schmitty" <[EMAIL PROTECTED]> 
> wrote:
> > >
> > > Is it possible to have flex save anything in its memory (bitmaps,
> > > sound streams, video streams) to the desktop (or prompt user to save
> > > somewhere) or is saving of binary data only in apollo?
> > >
> >
> >
>
>  


Re: [flexcoders] Re: Can Flex save anything to desktop or only AIR?

2007-12-21 Thread Rick Schmitty
but that would involve sending the binary data to the server, waiting
for the result, then using flash to initiate the download from the
server, right?



On Dec 21, 2007 1:23 PM, rueter007 <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> you can save binary data from a web application with the help of a server.
>
>
>
>  --- In flexcoders@yahoogroups.com, "Rick Schmitty" <[EMAIL PROTECTED]> wrote:
>  >
>  > Is it possible to have flex save anything in its memory (bitmaps,
>  > sound streams, video streams) to the desktop (or prompt user to save
>  > somewhere) or is saving of binary data only in apollo?
>  >
>
>  


[flexcoders] Re: Can Flex save anything to desktop or only AIR?

2007-12-21 Thread rueter007
you can save binary data from a web application with the help of a server.

--- In flexcoders@yahoogroups.com, "Rick Schmitty" <[EMAIL PROTECTED]> wrote:
>
> Is it possible to have flex save anything in its memory (bitmaps,
> sound streams, video streams) to the desktop (or prompt user to save
> somewhere) or is saving of binary data only in apollo?
>