Ok, so I started to make the following code but I can't find
the ?????? line adapted for wav file
What are you thninking about my started code to save my wav file on a
database :
byte[] decoded = Base64.decode( tabMsg[0].getMsgBase64() );
ContentValues values = new ContentValues();
values.put(Media.DISPLAY_NAME, "Voicemail1");
values.put(Media.MIME_TYPE, "Audio/wav");
Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI,
values);
File m_wav = new File(uri.getEncodedPath(), "voicemail1.wav");
try
{
OutputStream outStream = getContentResolver().openOutputStream
(uri);
m_wav.compress(Bitmap.CompressFormat.JPEG, 50,
outStream); ????????
outStream.close();
}
catch (Exception e)
{
Log.e(TAG, "Exception while writing audio", e);
}
Dany
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---