Save image locally without dialog box?

I know how to save images from flash using JPGEncoder/PNGEncoder using FileReference.save();

But I don’t want the dialogbox displayed.
I want this: Clicking a button will save the image to a predefined location without user confirmation.
OR
Is there anyway to store BitmapData locally so that I can access it later from flash?