Click here to Skip to main content
15,894,122 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What is the C# equivalent of multipart entity in java?I have a java code for uploading images into webserver shown below.I need the corresponding c# code.


MultipartEntity mpEntity = new MultipartEntity();
ContentBody cbFile = new FileBody(file, "image/jpeg");
mpEntity.addPart(filename, cbFile);
HttpPut put = new HttpPut("http://example.com/"+filename);
put.setEntity(mpEntity);


please explain hoe to use this in c#.


Thanks
Posted
Updated 9-Jan-13 1:16am
v2

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900