Jump to content

Search the Community

Showing results for tags 'indy tidhttpseerver'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Delphi Questions and Answers
    • Algorithms, Data Structures and Class Design
    • VCL
    • FMX
    • RTL and Delphi Object Pascal
    • Databases
    • Network, Cloud and Web
    • Windows API
    • Cross-platform
    • Delphi IDE and APIs
    • General Help
    • Delphi Third-Party
  • C++Builder Questions and Answers
    • General Help
  • General Discussions
    • Embarcadero Lounge
    • Tips / Blogs / Tutorials / Videos
    • Job Opportunities / Coder for Hire
    • I made this
  • Software Development
    • Project Planning and -Management
    • Software Testing and Quality Assurance
  • Community
    • Community Management

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Delphi-Version

Found 1 result

  1. I have need to send files to a Delphi service. I am able to send the files, but have not figured out how to extract the multipart items when received. procedure TForm15.IdHTTPServer1CommandGet(AContext: TIdContext; ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo); begin ARequestInfo.PostStream.Seek(0, soFromBeginning); Memo1.Lines.LoadFromStream(ARequestInfo.PostStream); end; Here is what I get when file is posted with a 2 other values added to the stream. What I need is a way to access each item. How do I ask for "type" and get back "OPRS" How do I ask for "ID" and get back "1234" How do I ask for "filename" and get back "test.pdf" How do I ask for actual file contents and save to memory stream to then write to disk ----------040224182640701 Content-Disposition: form-data; name="type" Content-Type: text/plain Content-Transfer-Encoding: quoted-printable OPRS ----------040224182640701 Content-Disposition: form-data; name="ID" Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 1234 ----------040224182640701 Content-Disposition: form-data; name="file"; filename="test.PDF" Content-Type: application/pdf Content-Transfer-Encoding: binary %PDF-1.6 %âãÏÓ 290 0 obj << /Border [ 0 0 0 ] /Contents (þÿ
×