save image in a directory in applicationStorageDirectory

前端 未结 1 615
小蘑菇
小蘑菇 2021-01-21 15:22

I was trying to save an imagefile to a directory in applicationStorageDirectory of my air project. Created the directory first

 var imageDirectory:File = File.ap         


        
1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-21 15:59

    Try:

    var file:File = File.applicationStorageDirectory.resolvePath("vispics/" + filename);
    

    0 讨论(0)
提交回复
热议问题