I have this problem.
Starting from Snapshot example ( C:\Symbian\6.1\Series60\Series60Ex\snapshot\ ) I created an application wich take photo from the camera and save it with this name format:
So every photo as an unique name.
This application works on 7650 without problem.
Works on 3650 too.
On 6600 doesn't work the part that save the image.
In other words, both on 7650 and 6600 it show me the image of the camera.
When I call the fuction to save the image the program didn't crash in both the device.
It seems that it's all ok.
But when I use FExplorer on the 7650 to look at the image on the 7650 the image has been saved, and everything is ok.
In the 6600 this what happend.
* The File with the name IMEI-date(dd/mm/aa)-hour(hh:mm:ss).jpg is create but it's 0 kb size.
* It's has a strange icon (like the notepad one on windows)
* It's completly empty
* When I try to open it the Nokia start "Notepad" and it show me the paper empty
* If I try to send this file via Bluetooth it answer me "Impossible to Send!"
What's wrong ?? This is the saving code:
TBuf <64> dirnomefile;
iGiorno = StringToInt(buf.Mid(0,2));
iMese = StringToInt(buf.Mid(3,2));
iYear = StringToInt(buf.Mid(6,4));
iHour = StringToInt(buf.Mid(11,2));
iMinute = StringToInt(buf.Mid(14,2));
iSecond = StringToInt(buf.Mid(17,2));
dirnomefile.Format(_L("\\%S-%02d-%02d-%04d-%02d-%02d-%02d.jpg"), &ImeiCode, iDay, iMonth, iYear, iHour, iMinute, iSecond);
// The Filename is IMEI-date-hour.jpg, so
// it's impossible to have file with the same
// Create Format and Codec
iFormat->iSettings.iQualityFactor = KJpgSavingQualityFactor;
// quality factor from 0 to 100 (55 used here)
iFormat->iSettings.iSampleScheme = TMdaJpgSettings::TColorSampling(TMdaJpgSettings::EColor420);
TMdaPackage* codec = NULL;
// create a file to save the image into
// this is done in an asynch function
iFileSaver->CreateL( newFilePathAndName, iFormat, codec, NULL );
//iSavingImage = ETrue; // set flag, can't take new pictures when saving
CleanupStack::PopAndDestroy(1); // codec
// After the photo is saved the window disappear..