Solved

Receive a file in asp.net from diferents websites

Posted on 2008-10-24
6
226 Views
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

thanks

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

                Response.BinaryWrite(bytes);

Open in new window

0
Comment
Question by:edwinbrrj
  • 5
6 Comments
 

Author Comment

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



1.JPG
2.JPG
0
 

Author Comment

by:edwinbrrj
ID: 22796822
I added the wrong send file page, this is the correct one
3.JPG
0
 

Author Comment

by:edwinbrrj
ID: 22797444
no answers...

is this question hard?
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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)
0
 

Author Comment

by:edwinbrrj
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.


0
 

Accepted Solution

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now