save image file to local system in java desktop application
<p>I want to save an image file which is chosen by JFileChooser.The file should be saved to my local sysytem in java desktop application.  How it is possible?? Please help me to do this thing..
I am using the following code to choose the image file</p>

<pre><code>public static String Filechooser(Component parent)
    {
        JFileChooser fcProductImage = new JFileChooser();
        int returnVal = fcProductImage.showOpenDialog(parent);

    if (returnVal == fcProductImage.APPROVE_OPTION) 
    {
        java.io.File file = fcProductImage.getSelectedFile();
        return file.getAbsolutePath();
    } 
    else 
    {
        return "";
    }
}
</code></pre>

<p>Thank you in advance!!</p>
