我正在尝试转换HttpResponse<InputStream>
(QR码)
到一个Bitmap
对象。我怎么能这样做?
HttpResponse<InputStream> response =
Unirest.get("https://unitag-qr-code-generation.p.mashape.com/api?data="+data+"setting="+set)
.header("X-Mashape-Key", "MY KEY")
.asBinary();
Bitmap image = BitmapFactory.decodeStream(response);