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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:40:37+00:00 2026-06-11T10:40:37+00:00

I have write some logs in to locally. when logs count reached 200 then

  • 0

I have write some logs in to locally. when logs count reached 200 then only I convert the logs into JSON to upload to server. Its worked perfectly.

My thought is I am also have one flush button the flush button control the remaining data or logs that means if the logs count is 240. The first 200 logs are automatically upload to server then remaining 40 logs are manually upload to server it means when user click the flus button it will be converted to JSON upload to server.

If user when view did load click the flush button 200 logs are uploaded and then overwriting 200 logs + 40 logs to be uploaded. How can I handle this issue.

  • 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-11T10:40:39+00:00Added an answer on June 11, 2026 at 10:40 am

    //URLConnection Class create the method for cancel the connection when the data upload automatically

    NSURLConnection *Connection;
    -(void)cancelConnection{
    if (connection)
    {
        [connection cancel];
        connection = nil;
    }
    
    }
    

    //Call this method at your Button Action

    -(IBAction)flushButtonAction:(id)sender{
    
    [urlConnection cancelConnection];
     //call your upload method again
    
    }
    

    this button action should help to when your data uploading into server to stop that connection then create to connection to upload the remaining data.. it seems to avoid the overwriting the existing data.

    Thanks for every one

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

Sidebar

Related Questions

I have some child processes which should write some logs into a common file.
So far I have managed to write some code that should print the source
I have been trying to write some code in Scala to read a file
I have to use windows to write some shell scripts. I decided to use
We have a database app that we're beginning to write some new systems for
I'm trying to write some C# code to do administration on IIS. I have
I need to read and write some data through named pipes. I have tested
I want to write some games, but I don't have any game development experience.
I need to write some data in several database. I choose sqlapi.com I have
Question simple and quick: I have started to use Netbeans to write some code

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.