We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Greetings,
How to update an image from AsyncHttpClient?
Here's my code:
@Override public void onSuccess(String response) { Bitmap bm = BitmapFactory.decodeFile(response); ImageView imgView = (ImageView)findViewById(R.id.imageView1); imgView.setImageBitmap(bm); }
I also tried this:
@Override public void onSuccess(String response) { Drawable d = null; Object content=response.getBytes(); InputStream is = (InputStream)content; d = Drawable.createFromStream(is, "src"); ImageView imgView= (ImageView)findViewById(R.id.imageView1); imgView.setImageDrawable(d); }
But the image always appears blank ;( I need some way of converting the String response into a drawable...
I saw from another issue that there are plans to transmit binary data and not just Strings?
Any insight greatly appreciated.
The text was updated successfully, but these errors were encountered:
See issue 8 for a discussion on this: #8
Sorry, something went wrong.
No branches or pull requests
Greetings,
How to update an image from AsyncHttpClient?
Here's my code:
I also tried this:
But the image always appears blank ;( I need some way of converting the String response into a drawable...
I saw from another issue that there are plans to transmit binary data and not just Strings?
Any insight greatly appreciated.
The text was updated successfully, but these errors were encountered: