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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:33:56+00:00 2026-05-27T01:33:56+00:00

First of all, I do not have any code written yet, I am only

  • 0

First of all, I do not have any code written yet, I am only in the design/thinking phase, so I’m doing some research on how to do what I want to do, this post is to get some bearings before I start coding.

So, I want to make an application that takes some info along with an image (from the camera preferably) and uploads it to a database in my test computer, and maybe to a dedicated server later on.

What I’m thinking is to make some web services, including a transfer service, so I can download and upload the images from and to my database, the database is MongoDB a No-SQL database (No-RDBMS). This database is based around documents, which makes the queries super-fast, and storing binary files stops being an issue.

But, and here’s my first question: Is it good to upload/download a file using a web service? especially for mobile devices?. If not what can I use, if it’s not an issue, what framework should I use (I’m thinking Axis2), and why. I will try to make the file size the smallest possible using some libraries to improve transfer times.

The second question would be if is is better to make a batch upload at specific times of day, or upload the files immediately after the operations are finished on the device?, I know this is a simple question, but this is a quest of enlightenment and I want to know, especially on mobile devices what is best.

Now, What kind of stream should I use for the upload/download? I’ve been reading, and converting an image to a byte array consumes a lot of CPU, and I don’t want my application to be sluggish, but this is the easiest way. Then there’s using DataHandlers for the transfer, but it seems complicated but not so harsh on the CPU (If I’m wrong, please do correct me on anything I say here), so I don’t know what to use.

Thanks for your time, and for reading this wall of text, but I’m trying to improve my skills, so any help would be greatly appreciated.

Edit

I found this thread extremely useful for what I’m trying to do:

Thread

  • 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-27T01:33:57+00:00Added an answer on May 27, 2026 at 1:33 am
    Is it good to upload/download a file using a web service? 
    

    Yes, You can, Using web service you can easily upload/download a file from server. But you have to do scrpting ar server side also (Use PHP, .net, etc..). It also useful to you for future use, just you have to change the address for server.

    It is better to make a batch upload at specific times of day, or upload the files immediately after the operations are finished on the device?
    

    You can achieve as per your need and availability of network and also the operation number with file to upload. You can do it in background (using AsyncTask, Service, Thread etc..)while your application is running so I think there is no overhead to your frontend activity.

    What kind of stream should I use for the upload/download?
    

    This also depends on how you maintain data on server or operate data on server. If you have use direct file (there is one apache library available) in request of webservice to upload download I think You don’t have to complex work for converting data in ByteArray, (but I think in background its happen).

    Hope now your work done.

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

Sidebar

Related Questions

First of all: I am not an experienced ClearCase user, but I have lots
First of all, do not be overwhelmed by the long code, I just put
Please remember that I am not using any ORM tool. I have just written
I have written the following code and not able to figure out the errors
First of all this is not some normal action I would want to do,
First of all,I'm not into web programming. I bumped into django and read a
first of all: this is not the same as this . The ModelBackend has
First of all I'm not sure this is even possible, however I need to
First of all I am not a designer. so this question is may be
First of all, I'm not looking for miracle... I know how PHP works and

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.