15,789,360 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Python questions
View PHP questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 10872485 (Top 52 by date)
Member 10872485
11-Sep-14 8:28am
View
Thank you :)
Don't worry for let reply ...
Member 10872485
10-Sep-14 3:26am
View
Thank you :)
Member 10872485
9-Sep-14 9:18am
View
Hi Suvabrata Roy,
Can you give me your oppinion about this :
http://www.codeproject.com/Questions/816864/Is-the-setup-file-of-the-published-outlook-add-in?arn=0
Thank you in advance :)
Member 10872485
20-Aug-14 10:33am
View
Thank you very much, I'm proud to learn from your experience and your knowledge :)
Member 10872485
20-Aug-14 6:04am
View
Yes, I'm using warping class then core code, this is HttpUploadHelper in UploadHelper library. It's advanced uploading with HttpWebRequest. This library provides an upload method that can upload multiple files and form variables in one request. But WebClient works for single file with no other form variables and you're right, it will be very good for anonymous sites but not for authentication based sites.
For testing my code, I just write (in php) :
var_dump($_FILES);
After I will to apply it on a web application made by the framework codeigniter.
Member 10872485
19-Aug-14 4:52am
View
Hi Suvabrata Roy, I left the office of my training when you asked me "Did your problem resolved?"
I found a solution on this link : http://aspnetupload.com/Upload-File-POST-HttpWebRequest-WebClient-RFC-1867.aspx
What is your view professional ?
Member 10872485
18-Aug-14 9:45am
View
I appreciate your knowledge to help others and thank you for your time :)
I am a beginner and I want to learn from a professionals developpers to become a professional after.
Thank you very much.
Member 10872485
18-Aug-14 7:08am
View
I just write :
var_dump($_FILES);exit;
in my server code, but it doesn't work !
I think that I have a problem in content_type !?
If I use application/octet-stream, I can upload all type off files (.csv, pdf, msg, .txt ) ???
Excuse me, but it's urgent !
Thank you in advance .
Member 10872485
18-Aug-14 2:25am
View
I found this solution in :
http://stackoverflow.com/questions/566462/upload-files-with-httpwebrequest-multipart-form-data !?
I want to upload multi-files in one request :)
Member 10872485
18-Aug-14 2:06am
View
Thank you Suvabrata Roy for your answer !
If I call this method, what can I put a paramName ?!
If I use application/octet-stream, I can upload all type of files ?! Or each type of file, there is a content type ???
Member 10872485
17-Aug-14 7:02am
View
Hi Suvabrata Roy,
Excuse me, I ask you a lot :)
Can you help me please about this question :
http://www.codeproject.com/Questions/808366/How-To-Upload-Text-Files-Using-Httpwebrequest-Mult?arn=0
Thank you in advance :)
Member 10872485
14-Aug-14 8:30am
View
Thank you Suvabrata Roy :)
Member 10872485
14-Aug-14 8:26am
View
Excuse me, you're right, I tried at first but I was able to solve the problem.
Anyway, I want to try again :)
Thank you.
Member 10872485
14-Aug-14 8:13am
View
Excuse me, but you repeat the Sergey Alexandrovich answer's !!!
Member 10872485
14-Aug-14 8:11am
View
Sorry, but I could not understand how I can link your answer to my problem ?
Member 10872485
14-Aug-14 3:48am
View
Hi Suvabrata Roy, can you help me about this question please :
http://www.codeproject.com/Questions/807354/How-to-deserialize-json-array-in-csharp
Member 10872485
14-Aug-14 3:16am
View
Thank you Sergey Alexandrovich for your ansawer, but untill now I can't understand how to deserialize my JSON array data in c#, can you give me an exemple of code how to do this please ?
Member 10872485
7-Aug-14 3:17am
View
Thank you, you're right not config at C, of course I want to avoid that in my project.
It is very interesting to learn from your experience :)
If I need any questions or any further clarification, you prefer to contact you on this site or you have another personal website ?
Thank you thank you :)
Member 10872485
7-Aug-14 1:59am
View
Thank you very much Suvabrata Roy, I appreciate your response.
I can save save the setup data by writing into MyFile.xml and not App.config, it is another solution.
// Create Config.xml
XmlDocument doc = new XmlDocument();
// Create :
XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
doc.AppendChild(docNode);
// Create : <setup>
XmlNode App4LegalSetup = doc.CreateElement("Setup");
doc.AppendChild(Setup);
...
doc.Save(@"C:\config.xml");
...
// Change a text of the node
string targetNode = "x";
string targetNodeText = "y";
doc.Load(@"C:\config.xml");
XmlNodeList Nodes = doc.GetElementsByTagName(targetNode);
Nodes[0].InnerText = targetNodeText;
doc.Save(@"C:\config.xml");
...
What is your opinion ?
Member 10872485
6-Aug-14 4:17am
View
So what can I do please ?
Member 10872485
6-Aug-14 1:49am
View
Hello, I have this problem when I run an add-in !!!
Member 10872485
5-Aug-14 10:23am
View
Deleted
You told me that you have a better way to write App.config !!!
So from my Add-in.cs ? what can I write to MyFile.config please ?
Member 10872485
5-Aug-14 9:12am
View
In :
catch (FileNotFoundException e)
{
throw new Exception("No configuration file found. ", e);
}
return :
No configuration file found !
Member 10872485
5-Aug-14 7:17am
View
Hi Suvabrata Roy,
Can you help me please about this question :
http://www.codeproject.com/Questions/804092/How-can-I-write-to-the-xml-file-from-my-add-in-csh?arn=0
Thank you in advance :)
Member 10872485
4-Aug-14 7:46am
View
Excuse me, but it doesn't work in my add-in c# for outlook, but I rephrase my question, how can I write to an xml file from my add-in c# for outlook.
So, in myFile.config, I have :
...
add key="Test1" value="My value 1" add
...
and in my add-in.cs :
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
m_Application = this.Application;
XmlDocument doc = new XmlDocument();
doc.Load(Assembly.GetExecutingAssembly().Location + ".config");
// To read from myFile.config
System.Window.Forms.MessageBox.Show(ConfigurationManager.AppSettings[key]);
// To write in myFile.config
// retrieve appSettings node
XmlNode node = doc.SelectSingleNode("//appSettings");
// Select the 'add' element that contains the key
XmlElement elem = (XmlElement)node.SelectSingleNode(string.Format("//add[@key='{0}']", "Test1"));
if (elem != null)
{
// add value for key
elem.SetAttribute("value", "TestValue");
}
else
{
// Key was not found so create the 'add' element and set it's key/value attributes
elem = doc.CreateElement("add");
elem.SetAttribute("key", "Test1");
elem.SetAttribute("value", "TestValue");
node.AppendChild(elem);
}
doc.Save(Assembly.GetExecutingAssembly().Location + ".config");
}
I can't read or write in myFile.config and the reason goes back to the Assembly.GetExecutingAssembly().Location + ".config" !!!
Thank you in advance :)
Member 10872485
1-Aug-14 7:31am
View
Thank you :)
Member 10872485
21-Jul-14 7:33am
View
Thank you very much, it was very interesting to learn from your experience :)
Member 10872485
21-Jul-14 6:41am
View
Excuse me, but it is a step that I'm missing, so after upload attachments to my web service, so now, I'm halfway to reach my work. Then I want to send them to a web application in php. (that data being FILE ($ _FILE))
Do you have a method for this ?
Thank you in advanced :)
Member 10872485
21-Jul-14 6:01am
View
Thank you for the explanation, but it is a step that I'm missing, so after uploade attachments to my web service, based on this link "http://www.c-sharpcorner.com/UploadFile/scottlysle/UploadwithCSharpWS05032007121259PM/UploadwithCSharpWS.aspx", I want to send its attachments to a Web application in php that data being FILE ($ _FILE).
The other links on the WCF and API in php not suitable with my case.
I remind you that I am working in C #.
Really thank you very much, it's been that I ask you.
Member 10872485
20-Jul-14 9:21am
View
So can you give me any idea please ?
Member 10872485
18-Jul-14 9:12am
View
yes, I mean it, among the data to be sent to the web application in php from web service in c#, there are attachments files.
Member 10872485
18-Jul-14 7:50am
View
My outlook plug-in is my desktop application wish I took a mail selected, this mail is composed of a subject, body, attachments etc. ... I want to take his attachments and send them to a web application in PHP via a web service in C#. So a web application in php accept FILE data.
So attachments will be transferred to the web service in c# and web service transfer this attachments to the web application in php.
Member 10872485
18-Jul-14 5:11am
View
You don't have an idea how to do that ?
Member 10872485
18-Jul-14 2:43am
View
I rephrase my question, if I want to send attachments files from C# application (plug-in or otherwise) to a php web application through a web service, provided that the web application accepts attachments files as FILE data, how can I do it ???
Member 10872485
18-Jul-14 2:28am
View
Excuse me, but I mean to get the path on my IIS server in my pc, I use Visual Studio 2010.
And I dont need to consume web service from php, I develop a plug-in ic C# for Outlook 2010, this plug-in is referenced to a web service, firstly, I transferred POST data from my web service to the web application (in PHP), because the web application is programmed to accept POST data to do such work, and now I want to sand a attachments from my plug-in to the web application the my web service referenced so I don't mean to consume my web service from php.
Thank you :)
Member 10872485
17-Jul-14 9:46am
View
In your link, I need to know the <root>:\\DocumentDirectory\\ directory path on the server (Web Service), So can you tell me how to know the directory path on my IIS server in my PC, and if I want to send file (FILE attachments) from a web service to a web application in php, what can I do ?
Member 10872485
16-Jul-14 2:35am
View
Thanks for your help :)
Member 10872485
11-Jul-14 5:36am
View
Your link relates to a WebForms Client and it is not clear for WindowsApplication Client,
can you be more clear in your reply please ?
Member 10872485
11-Jul-14 5:04am
View
Excuse me, but I don't use HttpWebRequest in my window application client, just I wrote :
using WindowsFormsApplicationName.ServiceReference;
...
private NameServiceSoapClient WS = new NameServiceDataSoapClient();
...
private void btnTest_Click(object sender, EventArgs e)
{
// Can you write me how to use CookieContainer here ?
string DataPOST = WS.HelloWorld();
MessageBox.Show(DataPOST);
}
Can you write me how to use CookieContainer here if I don't use HttpWebrequest ?
Thank you very much :)
Member 10872485
8-Jul-14 10:02am
View
So what can I do, can you give me an ideas please :)
Member 10872485
8-Jul-14 9:51am
View
I can't understand your response !
Member 10872485
8-Jul-14 9:29am
View
The client is an add in C# for Outlook, I parse an email selected and I take their attachments !
Member 10872485
8-Jul-14 9:13am
View
I want to parse the mail (subject, body, attachments ...) and send attechments to a web service in C#.
The final mission is to send attachments from the web service to another web application.
Member 10872485
2-Jul-14 1:33am
View
it gives me the data in this form :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>App4Legal</title> <base href="http://localhost:8081/app4legal.v4.2.4/" /> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <link rel="shortcut icon" type="image/x-icon"...
under title :
This XML file does not appear to have any style information associated with it. The document tree is shown below.
Member 10872485
1-Jul-14 10:31am
View
Excuse me, but it gives me in the header of the page
"This XML File does not APPEAR to have any style information Associated with it. The document tree is shown below"
and writing the tag in XML !
The date is :
{"id":"1","name":"Civil","litigation":"yes","corporate":"yes"},{"id":"2","name":"Criminal","litigation":"yes","corporate":"yes"}, ...
The code is :
string jsonData = "";
WebClient wc = new WebClient();
jsonData = wc.DownloadData("http://localhost:8081/xxxx/case_types/load_all");
jsonData = System.Text.Encoding.UTF8.GetString(buffer);
return jsonData;
Member 10872485
1-Jul-14 8:22am
View
But the function from this class returns me the data in bytes, I tried to convert their string, but unfortunately I have not received the data provided
Member 10872485
1-Jul-14 7:31am
View
No, what I meant to say that the JSON data come from a web application, and I want to write a function in a web service to retrieve this data.
I say a URL to access, ie these data will be sent as JSON from this URL.
exemple for URL (http://localhost:8081/xxxxx/case_types/load_all)
Member 10872485
1-Jul-14 7:00am
View
I'm sorry.
Receive a JSON data from a web application (I have a URL access).
In fact, the mission is to receive data from a web application in a desktop application by intermediate a web service, so now, I am in the web service and I am looking to write a function that receive the JSON data.
I hope that my idea is clear now and.
Thank you in advance
Member 10872485
12-Jun-14 7:05am
View
I'm sorry for the repetition of the question, I'm new here, I meant in my question that I am now in page web service, so how can I recover the data on this page, it means that should I write (Code) in the [WebMethod] function.
Thanks.
Member 10872485
12-Jun-14 5:20am
View
this code is in the side of the desktop application, what I'm asking is how I can recover the data from the web service that I have, so what is the code to write or what are the class to use ?
Thanks
Member 10872485
12-Jun-14 3:42am
View
Hello,
how I can retrieve the value sent (Method post or get) in the web service (nameOfPage.asmx) ?
Thanks.
Member 10872485
11-Jun-14 8:52am
View
I'll check this link to see your proposal
thank you very much Richard MacCutchan.
Show More