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

  • Home
  • SEARCH
  • 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 5937629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:34:08+00:00 2026-05-22T15:34:08+00:00

The application that I have in the works uses GPS data to mark files

  • 0

The application that I have in the works uses GPS data to mark files to a location which the user can then go back and see at the location later on. However I am stuck on how to send my data to the server which I want users to be able to see later.

What I was curious to know from the community here is which is the best way to go about that. I already have the GPS data from the location manager and its associated classes but I’m not to sure how to send that along with an image, sound file, or video in one seamless data transmission to the server where it can be stored in then later retrieved by the device according to the users privileges.

On the server the data is going to be saved in a postgresql data base and I’d like to have it all data associated with each upload tied into a json array of some kind being that I have the app pulling data in json arrays associated with positions and their marks.

So should I send out the GPS data as literal strings that a script on the server can parse into json format and if so is it possible to do that with an image attached to it as well……..I know its possible but I guess I just havent figured it out yet.

Or should I use some kind of library or something to bind the image/files to the gps data and send them as data stored in a json array.

  • 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-22T15:34:09+00:00Added an answer on May 22, 2026 at 3:34 pm

    I always find sending textual data (like gps values) easiest if done as JSON. If you have to put image/sound files into this as well you can do this by base64 encoding the data and putting the resulting string in the JSON.
    Personally I don’t like the base64 for 2 reasons:

    1. It adds about 37% to the size of the data
    2. If there is a problem with the connection you have to send everything again, rather than just the files that got messed up.

    Another way is to link images/sounds with a UDID. You send the JSON first with the references and then send each file separately to a handler on the server that accepts the UDID as the argument so it knows which file is being received. That way when there is a connection problem you only need to resend a single file.

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

Sidebar

Related Questions

No related questions found

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.