policymanagement/pmdmadapter/src/pmadapter.cpp
changeset 35 0deca9b72b62
parent 24 bf47f3b79154
child 73 ae69c2e8bc34
equal deleted inserted replaced
32:5d0ec111abfc 35:0deca9b72b62
   769 				TPtr8 ptr( data->Des() );
   769 				TPtr8 ptr( data->Des() );
   770 				User::LeaveIfError( file.Read( ptr ) );
   770 				User::LeaveIfError( file.Read( ptr ) );
   771 				TBase64 B64Coder;
   771 				TBase64 B64Coder;
   772 				HBufC8 *target = HBufC8::NewLC( ( size * 6 ) / 3 );
   772 				HBufC8 *target = HBufC8::NewLC( ( size * 6 ) / 3 );
   773 				TPtr8 targetPtr( target->Des() );
   773 				TPtr8 targetPtr( target->Des() );
   774 				B64Coder.Encode( *data, targetPtr ); 
   774 				B64Coder.PortableEncode( *data, targetPtr ); 
   775 				object->InsertL( 0, ptr );
   775 				object->InsertL( 0, ptr );
   776 				CleanupStack::PopAndDestroy( 3, &fs );
   776 				CleanupStack::PopAndDestroy( 3, &fs );
   777 				ret = EOk;
   777 				ret = EOk;
   778 				}
   778 				}
   779 #endif
   779 #endif