Android BMP object passed output stream and read by non-Android java program
Im writing an android application that gets the root-view of the activity and converts this to a Android BMP type object.
This can then be passed to an output stream as such:
bmpObject.compress( Bitmap.CompressFormat.JPEG, 100, outStream );
The issue is that to decode this on the receivers input stream it is recommended to use开发者_Go百科
bmpObject = BitmapFactory.decodeStream( inStream );
However the program receiving this input is not an Android application so that method wont work. Does anyone know what a good work around would be to either convert the rootview to however java wants a bmp to be passed and do outStream.writeBytes() or a way to decode the Android BMP upon receival so that it can be used to display/store at the non-Android java program.
精彩评论