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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:20:10+00:00 2026-05-30T23:20:10+00:00

I have an idea for an app and am currently learning Android development. I’m

  • 0

I have an idea for an app and am currently learning Android development. I’m fairly familiar with creating simple standalone apps.

I’m also familiar with PHP and webhosting.

What I want to do is, make an android app send an image to a server via the internet and make the server return a processed image. I have no clue how I’d do that.

Can you please tell me how can I go about achieving this or which topics should I look into? Also, what scripts can I use to do the processing on the web server? Particularly, can I use PHP or Java?

Thanks!

  • 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-30T23:20:11+00:00Added an answer on May 30, 2026 at 11:20 pm
    For Image Uploading
    ///Method Communicate with webservice an return Yes if Image uploaded else NO
    String  executeMultipartPost(Bitmap bm,String image_name) {
        String resp = null;
        try {  
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            bm.compress(CompressFormat.JPEG, 75, bos);
            byte[] data = bos.toByteArray();
            HttpClient httpClient = new DefaultHttpClient();
            HttpPost postRequest = new HttpPost("domain.com/upload_image.php");
            ByteArrayBody bab = new ByteArrayBody(data, image_name);
    
            MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);
            reqEntity.addPart("uploaded", bab);
            reqEntity.addPart("photoCaption", new StringBody("sfsdfsdf"));
            postRequest.setEntity(reqEntity);
            HttpResponse response = httpClient.execute(postRequest);
            BufferedReader reader = new BufferedReader(new  InputStreamReader(response.getEntity().getContent(), "UTF-8"));
            String sResponse;
            StringBuilder s = new StringBuilder();
            while ((sResponse = reader.readLine()) != null) {
                s = s.append(sResponse);
            }
            resp=s.toString();
        } catch (Exception e) {
            // handle exception here
            Log.e(e.getClass().getName(), e.getMessage());
        }
        return resp;
    }
    
    //PHP Code 
    <?php 
    
        $target = "upload/"; 
    
        $target = $target . basename( $_FILES['uploaded']['name']) ; 
        $ok=1; 
        if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) 
        {
            echo "yes";
        } 
        else {
            echo "no";
        }
    ?> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

4 java developers are new to iPod Touch/iPhone app development. They have an idea
I am a php/mysql developer learning android. I am creating an android app that
I am currently creating an iOS Newsstand app. I have issues added and working
I've been tasked with creating an IM app for IOS. I currently have an
I have an idea for an app that I would like to build which
The main idea is that I have several worker instances of a Rails app,
I have an idea for a simple application which will monitor a group of
I currently have widget for my app Hire A Droid bundled with the main
I'm currently working on an XMPP app' on Android and I'm pondering about the
I have an app that currently uses a bunch of include directives of aspx

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.