473,396 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Web.Client.UploadData()

Raj
I am using WebClient.UploadData(URL) to upload a strng to the particular URL.
How do I read the uploaded data or where excatly the data is stored, so that
I can use in my destination web page.

Raj
Nov 17 '05 #1
1 7114
Raj,

If you use the UploadData method, by default, the information is sent
with a POST request over HTTP. In order to access this through ASP.NET, you
would have to access the Form property which is returned from the
HttpRequest returned by the Request property on your page. This means that
you will have to send the string as a name/value pair (the way that a
browser will encode it).

If you don't want to encode it, I believe you can access the raw content
through the InputStream property on the Request, or through the Headers
collection exposed by the request (but I can't recall which header it is).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Raj" <Ra*@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
I am using WebClient.UploadData(URL) to upload a strng to the particular
URL.
How do I read the uploaded data or where excatly the data is stored, so
that
I can use in my destination web page.

Raj

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dave R | last post by:
Hi all, I am facing a problem with UploadData function. Here is my code - WebClient wc = new WebClient(); wc.Headers.Add("Content-Type: application/"); rgBuffer =...
0
by: Dave R | last post by:
Hi all, Has anyone used UploadData API successfully? The first parameter to the API is the URI where one needs to upload data. If I give a Fully qualified name i.e.http://myserver.mydomain:XX it...
0
by: Al Cadalzo | last post by:
I'm using VS.Net v7.1.3052 I'm using WebClient to do a POST: Here's a code snippet: (C#) Byte responseArray = null; try
3
by: bss2004 | last post by:
Help! I'm posting a PDF Doc to a remote server using WebClient UploadData and the following code. The DOC posts fine and the server returns a positive response. If I access the remote file in...
6
by: Russell Stevens | last post by:
I use a WinForm app for users to upload a file to my server. Basically one line of code; Response = WC.UploadData(MyUrl, "PUT", MyByteArray) Works fine except for larger files. After about 104...
0
by: Mark | last post by:
I have a very strange problem that is driving me nuts. My application is using the webclient object to send data to a webserver running on a unix box. We use 2 different environments, 1 for...
3
by: Philip Wagenaar | last post by:
Hello, I have a executeble that sends a request to a webserver: Return Encoding.UTF8.GetString(myWebClient.UploadData(uri, "POST", Encoding.UTF8.GetBytes(postString))) We are a having a...
0
by: galan1971 | last post by:
Hello, I'm trying to post to a page on a remote server and retrieve the result page and all is working fine except for one thing, the images which are dynamically created on the remote server...
4
by: Lehel Kovach | last post by:
I'm having a problem with the WebClient object. When I post data to certain sites, it will receive a command from the webserver (object moved) and continue to the next link by downloading that. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.