I try below code to get an URL file's thumbnail.
MediaMetadataRetriever mmr = new MediaMetadataRetriever();
mmr.setDataSource(URL);
byte[] image = mmr.getEmbeddedPicture();
I get the byte array(image) of thumbnail. And I want to save it as an image file. How can I do it?