0

I have an ASP.NET 2 application and would like users to upload a file to be processed immediately. The file never needs to be used again, so I don't care to store it on the server as a file somewhere, which hopefully will make it more secure on our end.

Basically, they upload an excel file and I process it and display some results. I do not care to save that excel file for later.

How can I do this?

1
  • What happened to your other question, 26 minutes ago? Commented Mar 9, 2012 at 16:34

1 Answer 1

2

You can hold the file contents in a MemoryStream.

This will ensure it is not saved to disk.

See What is the best practice for storing a file upload to a MemoryStream (C#)? for details.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.