Receive a file in asp.net from diferents websites

Posted on 2008-10-24
Medium Priority
Last Modified: 2013-12-17
I have a client who will send me a xml file with some transactions made by him. I want to create
a website that will receive these files by http and save the file in the server.

How could I receive these files in asp.net page?

I tried to do this to receive the bytes by it failed.

any sugestions


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

Open in new window

Question by:edwinbrrj
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5

Author Comment

ID: 22796786
these are my send.aspx file and the receive.aspx file:


Author Comment

ID: 22796822
I added the wrong send file page, this is the correct one

Author Comment

ID: 22797444
no answers...

is this question hard?
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 26

Expert Comment

by:Anurag Thakur
ID: 22797714
the following sample will show you how to upload a file to the IIS Server
http://aspnet.4guysfromrolla.com/articles/120606-1.aspx (the sample further updates the file to the DB)

Author Comment

ID: 22798293
thanks but I want something diferent:

I have a site www.abc.com has a functionality that sends a xml file to www.def.com

in www.def.com I need to pick up this file by http.


Accepted Solution

edwinbrrj earned 0 total points
ID: 22812371
I changed the "id" to "name" ant it worked

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question