Hi All,

I'm trying to capture an image, but always it gives an error:
javax.microedition.media.MediaException: Invalid locator: capture://video?encoding=image/jpeg
or
javax.microedition.media.MediaException: Invalid locator: capture://video?encoding=png
I have also checked by System.getProperty("video.snapshot.encodings"); it returns "encoding=image/jpeg"
I'm trying in NetBeanse 6.9.1 and emulator for Nokia Series 40
my code is ==>
player = Manager.createPlayer("capture://image"); //("capture://video");
player.realize();
videoControl = (VideoControl) (player.getControl("VideoControl"));
videoControl.initDisplayMode(videoControl.USE_DIRECT_VIDEO,this);
player.start();
videoControl.setVisible(true);
................
...............
if(videoControl != null){
byte[] image = videoControl.getSnapshot("encoding=image/jpeg"); //Exception is giving in this location
........
...................
}
also I have tried videoControl.getSnapshot("null"); but same Exception I am getting javax.microedition.media.MediaException: Invalid locator: capture://video?null

Please help me,it's urgent....
Thanks,
Shailendra