Click here to Skip to main content
12,696,493 members (30,420 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# C#4.0
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(""+filename);

please explain hoe to use this in c#.

Posted 9-Jan-13 2:11am
Updated 9-Jan-13 2:16am

1 solution

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 9 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100