Click here to Skip to main content
15,895,370 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get last day of specific date Pin
Richard MacCutchan23-Sep-18 21:54
mveRichard MacCutchan23-Sep-18 21:54 
QuestionStackoverflow Pin
Thomas Kiær23-Sep-18 0:28
Thomas Kiær23-Sep-18 0:28 
AnswerRe: Stackoverflow Pin
OriginalGriff23-Sep-18 1:13
mveOriginalGriff23-Sep-18 1:13 
GeneralRe: Stackoverflow Pin
Thomas Kiær23-Sep-18 5:45
Thomas Kiær23-Sep-18 5:45 
GeneralRe: Stackoverflow Pin
OriginalGriff23-Sep-18 6:04
mveOriginalGriff23-Sep-18 6:04 
GeneralRe: Stackoverflow Pin
Thomas Kiær23-Sep-18 6:14
Thomas Kiær23-Sep-18 6:14 
GeneralRe: Stackoverflow Pin
OriginalGriff23-Sep-18 6:27
mveOriginalGriff23-Sep-18 6:27 
QuestionC# Post files through rest api error Pin
Pradeep Kumar21-Sep-18 13:07
Pradeep Kumar21-Sep-18 13:07 
Hi all i have been trying to post files for a third party tool through rest api with MultipartFormDataContent. Even though i am writing files to MultipartFordatacontent in byte arry i am receiving error saying "400 bad request no filedata section found in multipart post request".

Request:

Method: POST, RequestUri: 'url', Version: 1.1, Content: System.Net.Http.MultipartFormDataContent, Headers:
{

Content-Type: multipart/form-data; boundary="4c10d3d0-f2ac-467e-9b46-3ca172eb646d"
Content-Length: 185
}
--c4757eb4-aefd-450a-a5cc-e879ac7f37ce
Content-Disposition: form-data; name=filedata; filename=pp.txt
Content-Type: text/plain

test file
--c4757eb4-aefd-450a-a5cc-e879ac7f37ce--


Response:
StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
x-transaction-id: 99999_fileuploaddownload_staging_1537571048380:f4e44b3ca701:28:jm91oq79:10113
vary: accept-encoding
Connection: keep-alive
Cache-Control: no-cache
Date: Fri, 21 Sep 2018 23:04:08 GMT
Content-Length: 104
Content-Type: application/json; charset=utf-8
}
{"statusCode":400,"error":"Bad Request","message":"No filedata section found in multipart POST request"}
AnswerRe: C# Post files through rest api error Pin
Richard MacCutchan21-Sep-18 21:37
mveRichard MacCutchan21-Sep-18 21:37 
Questionstore image in DB by Parameters.AddWithValue Pin
Member 1352250120-Sep-18 17:01
Member 1352250120-Sep-18 17:01 
AnswerRe: store image in DB by Parameters.AddWithValue Pin
OriginalGriff20-Sep-18 21:23
mveOriginalGriff20-Sep-18 21:23 
QuestionHow to modify picturebox image when clicked button Pin
mores.JR20-Sep-18 9:54
mores.JR20-Sep-18 9:54 
QuestionMessage Removed Pin
20-Sep-18 9:07
Member 1399203720-Sep-18 9:07 
Questioncommunication between two child forms in C# Pin
Member 1332584619-Sep-18 13:10
Member 1332584619-Sep-18 13:10 
AnswerRe: communication between two child forms in C# Pin
OriginalGriff19-Sep-18 19:56
mveOriginalGriff19-Sep-18 19:56 
GeneralRe: communication between two child forms in C# Pin
Member 1332584621-Sep-18 9:07
Member 1332584621-Sep-18 9:07 
GeneralRe: communication between two child forms in C# Pin
OriginalGriff21-Sep-18 23:57
mveOriginalGriff21-Sep-18 23:57 
GeneralRe: communication between two child forms in C# Pin
Member 1332584622-Sep-18 10:44
Member 1332584622-Sep-18 10:44 
GeneralRe: communication between two child forms in C# Pin
OriginalGriff22-Sep-18 21:07
mveOriginalGriff22-Sep-18 21:07 
GeneralRe: communication between two child forms in C# Pin
Member 1332584623-Sep-18 7:26
Member 1332584623-Sep-18 7:26 
GeneralRe: communication between two child forms in C# Pin
OriginalGriff23-Sep-18 7:36
mveOriginalGriff23-Sep-18 7:36 
GeneralRe: communication between two child forms in C# Pin
Member 1332584625-Sep-18 10:13
Member 1332584625-Sep-18 10:13 
Questionhow to make a gird of pictureboxs with c# Pin
mores.JR19-Sep-18 7:15
mores.JR19-Sep-18 7:15 
AnswerRe: how to make a gird of pictureboxs with c# Pin
OriginalGriff19-Sep-18 8:05
mveOriginalGriff19-Sep-18 8:05 
GeneralRe: how to make a gird of pictureboxs with c# Pin
mores.JR20-Sep-18 9:55
mores.JR20-Sep-18 9:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.