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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:19:11+00:00 2026-05-31T08:19:11+00:00

I want to process a file coming from a post request. The file looks

  • 0

I want to process a file coming from a post request.
The file looks like this:
first line: text1
second line: empty line
third line: text2
an example:

”
asdasdasd1

asdasdasd2
“

so far i processed the file like this:

byte[] data = Request.BinaryRead(Request.TotalBytes);

String processedfile = Encoding.UTF8.GetString(data);

But this was i lose the page breaks and the whole string becomes 1 line instead of 3.

How can i process the resquest where at the end i can keep the page breaks?

Thanks in advance!

Sincerely,

Zoli

  • 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-31T08:19:13+00:00Added an answer on May 31, 2026 at 8:19 am

    Since you’re not using an HTML upload control on the page (which would preserve the entire file without issue) – my guess is that the significant whitespace in your ‘file’, isn’t percent-encoded (or URL encoded: http://en.wikipedia.org/wiki/Percent-encoding) and so is getting dropped.

    Your client needs to URL encode the file contents otherwise stuff like spaces, tabs, etc will most likely be lost.

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

Sidebar

Related Questions

I want to open a file from a Class in C# using a Process,
i want to process a text file line by line. In the olden days
I have a file that looks like this(have to put in code box so
I want to process each source code file after it has been preprocessed: myprocess
I want to upload and then process a file in a Ruby on Rails
Say I have a data file that I want to process; I want to
In PHP, I want to read a file into a variable and process the
I want to process every element of a for-loop. Taking this code, why is
how to manage a process php file?? i want every form which connected to
I want to process a file (1.9GB) that contains 100.000.000 datasets in R. Actually

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.