Hi,

I try to convert a bitmap picture into a png one and I have the following error: "Error saving image". Have you an idea ?
Let's see the called function :

/* FIRST */
void CTakePicView::SaveInPng()
{
if (iConvertState != EConvertStateReady)
{
return;
}

iFileSaver->CreateL(KPngFileName, &iPngClipFormat, &iPngCodec, &iPngCodec);
iConvertState = EConvertStateSaving;
}


/* SECOND */
void CTakePicView::MiuoCreateComplete(TInt aError)
{
if (aError == KErrNone)
{
TRAPD(err,iFileSaver->ConvertL(*iBitmap));
if (err != KErrNone)
{
MessageBox(_L("Conversion could not be started&quot);
}
}
else
{
iConvertState = EConvertStateReady;
MessageBox(_L("File Could not be created&quot);
}
}


/* THIRD */
void CTakePicView::MiuoConvertComplete(TInt aError)
{
switch (iConvertState)
{
case EConvertStateSaving:
SavingFinished(aError);
break;

case EConvertStateNull:

default:
ASSERT(FALSE);
}
}


/* AND THEN */
void CTakePicView::SavingFinished(TInt aError)
{
if (aError == KErrNone)
{
iConvertState = EConvertStateReady;
MessageBox(_L("File Saved&quot);
}
else
{
MessageBox(_L("Error saving image&quot);
}
}



Thanks you for your help.


Sb