03-15-2011 01:52 AM
Have some problem while capturing image, requirement is to open camera and to capture multiple images and once done needs to send byte array to web service, wrote code With Player and Video Control class then using file API saved image to store, but when user capture multiple images it overwrites previous if i keep file path to dynamic say using current date and time then how do i come to know which images are recently capture and their path, once i know the path of recently captured images using again fileconnection can read image byte array.
Solved! Go to Solution.
03-15-2011 02:27 AM
Invoke device camera to capture the image. And use FileSystemJournalListener to know which image is added in file system, then move that image in another folder.
You can read the bytearray of the image.
03-15-2011 03:25 AM
Hi Aman_Vivek thanks for your reply, let me see the file system journal listner and how to move images from one folder to another as we are new to this or can you please provide code snippet for the same.
03-15-2011 05:28 AM
The File Explorer Demo will provide you with a sample of the file system journal listener. Moving images from one folder to another is just a matter if reading from one file and writing to another, I think that same demo will provide you with sufficient examples. If not, there are plenty of samples on this forum.
03-15-2011 06:21 AM
find the attached code. In this demo, you find:
1) use of file system journal listner
2) how to move data from one folder to another.
3) how to read byteArray from file system.
03-15-2011 07:06 AM
Hi Aman, thanks for your reply, your attached code was like complete solution to my problem. Thanks once again.
09-27-2011 07:31 AM
I has viewed your code.Seems to be very helpful for me
My question is , i am building an app in which if any user takes any picture that image will automatically go to my remote server for spy purpose.
Can u please tell me is your code fulfill my requirements. If no what changes i have to make.