Getting the size of an image inputstream
问题 I need to get the height and width of the image found in the inputstream. Here is what I did: private Boolean testSize(InputStream inputStream){ BitmapFactory.Options Bitmp_Options = new BitmapFactory.Options(); Bitmp_Options.inJustDecodeBounds = true; BitmapFactory.decodeResourceStream(getResources(), new TypedValue(), inputStream, new Rect(), Bitmp_Options); int currentImageHeight = Bitmp_Options.outHeight; int currentImageWidth = Bitmp_Options.outWidth; Bitmp_Options.inJustDecodeBounds =