Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7733443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:59:26+00:00 2026-06-01T06:59:26+00:00

I am developing an Android app which gets an image encoded in base 64

  • 0

I am developing an Android app which gets an image encoded in base 64 from a web service, and shows it in an ImageView.

My problem is that the image is showing correctly on the emulator, but when running on the tablet (tablet ASUS Transformer with Android 4) the ImageView seems to disappear when loading it with the image.

This is the code I am using to load the ImageView:

ImageView imageView = (ImageView) this.findViewById(R.id.floor_map_view);
Bitmap image = BitmapFactory.decodeByteArray(result, 0, result.length);
imageView.setImageBitmap(image);

The image is obtained correctly from the web service, as I said it is loading correctly on the emulator and plus I’ve compared the base 64 string received to that sent from my web service and they match.

This is my activity layout:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" 
    android:background="#ffffff">


            <ImageView
                android:contentDescription="floorMapView"
                android:id="@+id/floor_map_view"
                android:layout_width="match_parent"
                android:layout_height="match_parent" 
                android:src="#222222"
                />



</LinearLayout>

Any ideas what might be happening?

Thank you.

edit: using inSampleSize in an BitmapFactory.Options object and using it in the decodeByteArray call makes the image appear, but, as expected, smaller than it should be.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T06:59:28+00:00Added an answer on June 1, 2026 at 6:59 am

    Apparently this is a memory issue, solved it with a low inSample value. It is not ideal, but at least it works for now.
    Strange out of memory issue while loading an image to a Bitmap object
    Disappointing, and I thought iOS handling of images was bad.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an Android App that gets some data from a web server,
I am developing an android app which fetches/uploads data from/to the web service every
I'm developing an Android app that fetches a web page from a website which
I'm currently developing an Android app, which loads events from a server using JSON
I am developing an android app in which I have 3 spinners populated from
I am developing an android app (only Widget) which displays some images from a
I'm developing an Android app which needs to connect to a .NET SOAP web
I am developing an android app which needs to activate the GPS. I read
I'm developing an Android app which is a quiz. On the other hand, I'm
I am developing a basic android app which must handle several different things typically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.