In my app I have a jpegencoder which saves bitmap snapshots of components as
jpgs in my images folder (assets/images). The problem is it saves them in the
bin-debug folder rather than the src folder.
The reason I want them in the src folder is so that I can embed them within the
app and it seems you can't embed images that are in the bin-debug folder. The
reason I want to be able to save them directly into the src/assets/images
folder is so that they will replace current images I have stored there which
are embedded within the app so hopefully as they are saved these will replace
the images live within the app if that makes sense.
The current line of code I have which saves the images in the bin-debug folder
is this:-
var file:File =
File.applicationDirectory.resolvePath("assets/images/testpicture.jpg");
Can anyone tell me how to modify this so that they save in the source/src
folder rather than the bin-debug folder? Thanks.