How can I save a photo into a folder with mdm zinc in flash?

359 Views Asked by At

So far I have this code which uploads the photo

mdm.Dialogs.BrowseFile.filterList = "Images|*.bmp;*.jpg;*.jpeg;*.png;*.gif";
function showPrompt(eventObj:MouseEvent):void {
var f:String = mdm.Dialogs.BrowseFile.show();
if (f!="" && f!=false) {
    l1.source = f;
    addChild(l1);
}

My question is how can I save the photo into another folder?
for example something like:

mdm.FileSystem.BinaryFile.setDataBA();
mdm.FileSystem.BinaryFile.writeData("c:\\myimage.jpg");
1

There are 1 best solutions below

0
On

Check out the ImageAdv class in MDM's Livedocs

ImageAdv contains methods like loadJpg and saveJpg, probably this will help you.