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 7544615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:43:03+00:00 2026-05-30T08:43:03+00:00

i am using json parsing in my url a very big size images are

  • 0

i am using json parsing in my url a very big size images are there and i want get those images but not downloaded …..can any body help me to get those images
my code is as followsenter code here

public class Image extends Activity{

String imageBaseDirectory = "http://www.dha.com.tr/newpics/news/";

Bitmap bit;

public void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.image);

    ImageView img=(ImageView)findViewById(R.id.ImageView01);


    img.setImageBitmap(convertImage(imageBaseDirectory));


}

public Bitmap convertImage(String s)
{

        URL aURL = null;
        try 
        {
        final String imageUrl =s.replaceAll(" ","%20");
        Log.e("Image Url",imageUrl);
        aURL = new URL(imageUrl);
        URLConnection conn = aURL.openConnection();
        InputStream is = conn.getInputStream(); 
        //@SuppressWarnings("unused")
        BufferedInputStream bis = new BufferedInputStream(is); 
        Bitmap bm = BitmapFactory.decodeStream(new PatchInputStream(bis)); 
        if(bm==null){}
        else
            bit=Bitmap.createScaledBitmap(bm,60, 60, true);

        return bit;

        }
        catch(Exception e)
        {
            e.printStackTrace();
              return null;
        }
 }
  • 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-05-30T08:43:04+00:00Added an answer on May 30, 2026 at 8:43 am
    Try this code I hope it will help.
    
    private Bitmap LoadPhotoFromServer(String path){
    
            Bitmap bm=null;
    
            URL url = null;
            try {
                url = new URL(path);
            } catch (MalformedURLException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }
    
    
            try{
    
    
                HttpURLConnection httpConnection=(HttpURLConnection)url.openConnection();
                httpConnection.setDoInput(true);
                httpConnection.connect();
                //int lengthOfFile=httpConnection.getContentLength();
                InputStream inputStream=httpConnection.getInputStream();
                bm=BitmapFactory.decodeStream(inputStream);
            }
    
            catch (MalformedURLException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
                 } catch (IOException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
                 }
    
    
            return bm;
    
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to populate this json http://www.godsgypsychristianchurch.net/music.json using a get request, there are multiple
I'm using the code below for Android JSON parsing but I am getting the
I'm parsing an url using json. I'm getting the value of each tag and
I am using url to take the file for parsing. Now i want read
I am using jQuery Autocomplete with JSON but the resulting data is not displaying
i m parsing a json url using SBJSON and everything works fine. the problem
I am using JSON parsing, I put data in array named JSON Array .
I m using JSON and while parsing, i m getting the returned value as
I am using google Api for custom search and have done the json Parsing.
I'm attempting to retrieve a JSON file from an API for parsing. I'm using

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.