here is what i do
FileO开发者_如何学CutputStream out = new FileOutputStream(
                        "/sdcard/Deltio1.jpg");
                Bitmap e = BitmapFactory.decodeByteArray(imageData, 0,
                        imageData.length);
                e.compress(Bitmap.CompressFormat.JPEG, 65, out);
                out.close();
and to retrieve it
FileInputStream fin = new FileInputStream("/sdcard/Deltio1.jpg");
            ObjectInputStream in = new ObjectInputStream(fin);
            Bitmap bitmap;
              bitmap = (Bitmap) in.readObject();
              ImageView photo = (ImageView) findViewById(R.id.katagelia_photo);
              photo.setImageBitmap(bitmap);
It throws java.io.StreamCorruptedException
Found it. But i leave it open for discussion and why the first one failed.
 Bitmap bm = BitmapFactory.decodeFile(myJpgPath, options); 
 options.inSampleSize = 2;
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论