SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
bitmap.compress(Bitmap.CompressFormat.PNG, quality, outStream);
See this