As far as I know its not possible to get a File object directly off of
the client machine...if the client is using flash 9. 

It looks like this was resolved in Flash 10 though. Yay!

http://drawlogic.com/2008/05/17/amazing-new-feature-for-flash-10/



--- In [email protected], "Kevin Benz" <[EMAIL PROTECTED]> wrote:
>
> This actually isn't very tough at all. You need to get the File object,
> load its  BitmapData and use the Matrix object to size it and then
> either PNGEncode or JPGEncode back out.
> 
>  
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of valdhor
> Sent: Friday, October 17, 2008 6:41 AM
> To: [email protected]
> Subject: [flexcoders] Re: Flex uploader / accessing local files?
> 
>  
> 
> It looks like you'll have to wait for Flash Player 10. See this thread:
> 
> http://tech.groups.yahoo.com/group/flexcoders/message/126563
> 
> --- In [email protected] <mailto:flexcoders%40yahoogroups.com>
> , "Rob Kunkle" <rob@> wrote:
> >
> > Hi -
> > 
> > I've made a flex uploading application that gets a file from the
> > client's file system using FileReference() and uploads it to a server.
> 
> > 
> > I'd like to be able to resize the image before it is sent to the
> > server, but apparently flex doesn't have access to the actual bits
> > that make up the image file, only a reference to the file.
> > 
> > Surely there must be a way to manipulate that image data from the
> > client's file before it gets to the server? 
> > 
> > Has anyone done anything like this? I've looked all around but haven't
> > had much luck.
> > 
> > Thanks in advance,
> > Rob
> >
>


Reply via email to