Solved

Receive a file in asp.net from diferents websites

Posted on 2008-10-24
6
244 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
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 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