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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:01:06+00:00 2026-06-05T01:01:06+00:00

I have a problem with my webapplication. I have made an upload-function for uploading

  • 0

I have a problem with my webapplication. I have made an upload-function for uploading documents. Local on debbuging it works without problem. When I run my application on the server it works also, but the files are after the upload corrupt (e.g. word-file has only some signs instead the correct text).

I think the error must be somewhere in the server-setting or maybe in webconfig? I search since hours for a solution but can’t find a similiar problem (yes, maybe i search with wrong keywords 🙁

Has somebody a solution? Thank you!

My Code:

<asp:FileUpload ID="FileUpload1" runat="server" /><br />
<asp:Button ID="btnUpload" runat="server" Text="Datei hochladen" onclick="btnUpload_Click" />

Code behind

//some code for save fileinfos in database...
...
...

//Upload File
FileUpload1.SaveAs(path + fileName);

There is no errormessage I could post, because it works obviously all fine. The problem are the corrupt files after uploading on server (local it works)

  • 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-05T01:01:07+00:00Added an answer on June 5, 2026 at 1:01 am

    I can’t see the byte array generation code here(the section you have commented above) but if everything is ok in the code, the byte array received from stream is corrupted. It may be because of errors in client side java script codes. But you say that a local test is ok. It may be because of the network settings ?! If packet payloads are corrupted, what you get on server side will be corrupted as well. Do you have any firewall in the middle ?! Any signature matching application ?!

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

Sidebar

Related Questions

i have a problem with session in my webapplication (asp.net mvc rc2). the application
I have problem with fancybox. I want to write a function that will run
I have to create a desktop client to previously made web application. Problem is
I have a problem, which is not easily described. I'm writing a web application
I am using a javax.servlet.http.HttpServletRequest to implement a web application. I have no problem
I am working on a small Java EE web application. The problem I have
I have an 'access denied' problem on an ASP.NET web application, where the user
I have a web application made for several groups of people not connected with
I have made an application that displays a lot of questions from my database.
We have a Web Application (WebApplication A) which is in place and serving fine,

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.