#Appcelerator Ti.Paint Android not saving image
<p>I know the paint module is very simple, and I have been using versions of it for years. Recently, (version 2.0.3), the pantView.toImage().media has stopped working. I actually us it to save a snapshot of the display so it is win.toImage().media. It gives me a 0 kb file. It detects a file, but it is empty. Any ideas how I can remedy the situation?</p>

<p>Appcelerator SDK 5.2.0 GA</p>

<p>Ti.Paint 2.0.3</p>

<p>Android OS target 6.0.x</p>

<p>Windows 8.1</p>

<pre><code>    var sigImg = win.toImage().media; 
var filename = (Ti.App.currentWorkOrderId + "_signature.png");
    var img = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory,filename);
if(img.exists){
    img.deleteFile();
}
img.write(sigImg);
</code></pre>