473,396 Members | 1,945 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.

I am sending image through WebRequest

I am sending image through webrequest to my live server but i am not able to get image file on server how to get the image if any on help me please.


WebRequest request = WebRequest.Create("http://192.168.1.26/Madhav/SaveClinicalFundusImages.aspx");


request.Method = "POST";

string postData = @"C:\FHPL\FORUS0421\140421115725\Images\0001CL0D.j pg"; //Convert.ToBase64String(x);

byte[] byteArray = Encoding.UTF8.GetBytes(postData);
request.ContentType = "application/x-www-form-urlencoded";

request.ContentLength = byteArray.Length;
Stream dataStream = request.GetRequestStream();
dataStream.Write(byteArray, 0, byteArray.Length);

dataStream.Close();

please help me
Dec 31 '18 #1
1 2127
Luuk
1,047 Expert 1GB
What is the size of your picture? and what is the size of our variable 'byteArray'?

Above is a hint, because i do not think you are sending a picture, but you are only sending it's name.
Jan 1 '19 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Lee | last post by:
I am having a problem returning an image that I got from SQL Server from within an ASP page that got requested from a VC++ application. Specifically, within my application, I make an HTTP call to...
2
by: dave | last post by:
Hi I'm using CDO message to send email thru asp code. Below is sample code... body = body & "<tr><td colspan=2><img src=images/contacts_5.jpg></td></tr>" I'm just confused why its not...
4
by: Jim Michaels | last post by:
<?php include 'dbinc.php'; $result = mysql_query("SELECT image,mime_type FROM photos WHERE image_id=".intval($_GET), $link) or die("MyErr:".mysql_error()); if ($row = mysql_fetch_assoc($result))...
2
by: nishi.hirve | last post by:
Hello, I am writing 1 client-server application in which I have written my server in C on linux system and client in C#. My server is sending image bytes of that image size to the client....
2
by: maxime_phan | last post by:
Hello everyone, I'm trying to make a webcam software with python, pil library and enet (networking) Now I have in the client my pil image get from webcam, ready to be send by network. I do...
1
by: Lakshmanakumar | last post by:
hi, I had send a link in email . when user open the email click the link on it open mypage.asp. On that page i show a thumb nail image when user click on he got an enlarged image in new...
1
by: RKalai | last post by:
hi, i have picture in a image box and i want to send the picture to printer. i tried with paintpicture.but i m not able to do.can anyone specify the code to perform the same. thanks in advance...
7
by: hsegoy1979 | last post by:
Dear All Iam using file upload control and i want to display image in another pop up page .But image is not displaying in image control iam sending image path thru querystring . here is my code ...
2
by: sandeepdhankar10 | last post by:
hi experts, i need ur help. i want to send a image via http post along with the form data i.e image name etc to a specified url .. which is the url of a jsp servelt. NOTE:- I am sending...
2
by: ksheerasagar17 | last post by:
Hello All, Scenario: Sending an image through webservice as byte array to an Java webservice. The Problem1: The webservice method image property expects (data type) SByte rather than Byte...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.