Solved

Receive a file in asp.net from diferents websites

Posted on 2008-10-24
6
211 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 to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 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

12 Experts available now in Live!

Get 1:1 Help Now