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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:32:06+00:00 2026-05-30T19:32:06+00:00

My yet to be released Delphi 2010 application allows users to upload their files

  • 0

My yet to be released Delphi 2010 application allows users to upload their files to my servers. Right now I’m using HTTPS POST to send the files, the (simplified) algorithm is basically:

  1. Split File into “slices” (256KB each)
  2. For each slice, POST it to server

ie. for a 1MB file:

--> Get Slice #1 (256KB)
--> Upload Slice #1 using TidHTTP.Post()

--> Get Slice #2 (256KB)
--> Upload Slice #2 using TidHTTP.Post()

--> Get Slice #3 (256KB)
--> Upload Slice #3 using TidHTTP.Post()

--> Get Slice #4 (256KB)
--> Upload Slice #4 using TidHTTP.Post()

I’m using Indy 10. I (ab)used my profiler over and over and there are not much left to optimize except changing the upload routine itself.

I’m also using multi-threading, and even though I did my best to optimize my code, my benchmarks still tell me I can do better (there are other well optimized software that do achieve a much better timing…almost twice as fast as my upload routine!)

I know it’s not my server’s fault…here are the ideas that I still need to explore:

  1. I tried grouping slices in a single POST, naturally this resulted in a performance boost (20-35%) but resuming capability is now reduced.

  2. I also thought about using SFTP / SSH, but I’m not sure if it’s fast.

  3. Use web sockets to implement resumable upload (like this component), I’m not sure about speed either.

Now my question is: is there something I can do to speed up my upload? I’m open to any suggestion that I can implement, including commandline tools (if license allows me to ship it with my application), provided that:

  1. Resumable upload is supported
  2. Fast!
  3. Reasonable memory usage
  4. Secure & allow login/user authentication

Also, because of major security concerns, FTP is a not something I’d want to implement.

Thanks a lot!

  • 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-30T19:32:07+00:00Added an answer on May 30, 2026 at 7:32 pm

    I would suggest doing a single TIdHTTP.Post() for the entire file without chunking it at all. You can use the TIdHTTP.OnWork... events to keep track of how many bytes were sent to the server so you know where to resume from if needed. When resuming, you can use the TIdHTTP.Request.CustomHeaders property to include a custom header that tells the server where you are resuming from, so it can roll back its previous file to the specfiied offset before accepting the new data.

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

Sidebar

Related Questions

Currently, my Iphone application is not released yet. When I worked with the simulator/device
Some weird problem is haunting me right now: One of my apps (not yet
I have an iPhone application that is not yet released but I wanted to
We're using a duplex contract for one feature in our yet to be released
(Using Delphi 2010 + latest SQLite in WAL mode) I'm using DISQLite (Delphi port
Does anyone know if this has been released yet? I went to asp.net and
Anybody found yet a good web site architecture using linq to sql? Any help
Maybe I'm just missing it, but is there any documentation on Apple's not-yet-released Game
Yesterday I installed Delphi XE2 using the download option, so I guess the installed
I want to distribute a sysadmin utility inside our company that depends on not-yet-released

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.