mvanella
mvanella

Reputation: 3656

Delphi - Max Size of TStrings.Text

I am having a similar problem to this question: Delphi WebAction - Request.ContentFields.Values['something'] size limit

The dll I have has a way to create multiple entries via a POST request. In the specific instance where this is a problem the POST request size is approximately 250,000 characters. It seems, however, that Request.ContentFields.Text is truncating that value at around 65,527 characters, so the DLL is losing data when creating the entry. The question I referenced was never completely answered but the poster seems to have found a workaround.

I can't find any documentation on the maximum size of TStrings.Text.

I am still curious though, is there a max size of Request.ContentFields.Text, which is actually TStrings.Text?

Upvotes: 0

Views: 4238

Answers (1)

LU RD
LU RD

Reputation: 34899

There is no restriction on the size limit of TStrings.Text, besides what restricts a normal String size.

That is corresponding to 2 GB.

Most likely the web interface is imposing those restrictions, as explained in the linked question.

Upvotes: 1

Related Questions