|
|
User login
Feeds |
file is not created on phone(a newbie)
|
|||||
| Thu, 2005-08-04 09:02 | |
|
hi
I'm trying to save an encoded image taken from camera in image folder of phone memory.But file i've tried to create is n't being created.I'm using RFile and RFileWriteStream to create and write my stream into the file.     DstBuffer = new(ELeave)  unsigned char[sz]; QwikVuEnc->obsRaw->read((char*)DstBuffer,sz); RFs     iSession1; User::LeaveIfError(iSession1.Connect()); CleanupClosePushL(iSession1); RFile  bitmapfile1; if(bitmapfile1.Replace(iSession1,(TDesC&)FileName,EFileWrite|EFileStream )!= KErrNone) {     CAknInformationNote* informationNote = new (ELeave)CAknInformationNote;     informationNote->ExecuteLD(_L("Failed to create file"));     CleanupStack::PopAndDestroy(); // Close fileSession     return 0;     } CleanupClosePushL(bitmapfile1); // User::LeaveIfError(err); RFileWriteStream writefile(bitmapfile1); CleanupClosePushL(writefile); writefile.WriteL(DstBuffer,sz); writefile.CommitL(); // bitmapfile1.Close(); // iSession1.Close(); CleanupStack::PopAndDestroy();//Close writefile CleanupStack::PopAndDestroy();// Close bitmapfile1 CleanupStack::PopAndDestroy();// Close iSession1    Pl anyone help me...    advance thanks for help.. bye amit mittal |
|
Forum posts: 142
yucca
Forum posts: 192
What is the error code reurned by Replace?