Save image locally without dialog box?

I know how to save images from flash using JPGEncoder/PNGEncoder using;

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.
Is there anyway to store BitmapData locally so that I can access it later from flash?