views:

219

answers:

1

I'm trying to create a program that emulates the camera. How can I store the Image to a file in the mobile? I am targeting Symbian S60v3, using Nokia N82 for my test mobile.

A: 

Nevermind, I got it. I can just use a FileConnection to write it -

        FileConnection filecon = (FileConnection)
                 Connector.open("file:///E:/imagefile.jpg");
        if (!filecon.exists())
            filecon.create(); // create the file if it doesn't exist
        DataOutputStream os = filecon.openDataOutputStream();
        os.write(raw);  // Raw image

KalEl