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" <[EMAIL PROTECTED]> 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 >
<<image001.jpg>>
<<image002.jpg>>

