Click here to Skip to main content
       

C#

 
QuestionMD5 hash encrypt and decryption Pinmemberthekoko8920-Feb-13 15:32 
GeneralRe: MD5 hash encrypt and decryption PinmemberPIEBALDconsult20-Feb-13 17:18 
AnswerRe: MD5 hash encrypt and decryption PinmemberBernhard Hiller20-Feb-13 21:12 
AnswerRe: MD5 hash encrypt and decryption PinmvpDave Kreskowiak21-Feb-13 2:34 
QuestionPost a file to remote server using HTTPWEBREQUEST Pinmembervanikanc20-Feb-13 9:07 
AnswerRe: Post a file to remote server using HTTPWEBREQUEST PinmvpEddy Vluggen20-Feb-13 9:51 
GeneralRe: Post a file to remote server using HTTPWEBREQUEST Pinmembervanikanc20-Feb-13 10:04 
AnswerRe: Post a file to remote server using HTTPWEBREQUEST PinmvpEddy Vluggen20-Feb-13 10:13 
vanikanc wrote:
There are no errors in the program.
There is, even though it doesn't throw an exception. Consider below line;
byte[] bytedata = UTF8Encoding.UTF8.GetBytes(filetoupload.ToString());
"filetoupload.ToString()" would result in "System.IO.FileStream". And that'd be passed to the "GetBytes"-function. Try something like below;
byte[] bytedata = File.ReadAllBytes("C:\\projects\\testfile.csv");
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: Post a file to remote server using HTTPWEBREQUEST Pinmembervanikanc21-Feb-13 2:53 
AnswerRe: Post a file to remote server using HTTPWEBREQUEST PinprotectorPete O'Hanlon20-Feb-13 10:18 
GeneralRe: Post a file to remote server using HTTPWEBREQUEST Pinmembervanikanc21-Feb-13 2:49 
Questionsource code for navigation PinmemberNani Maneesh20-Feb-13 7:07 
AnswerRe: source code for navigation PinmvpDave Kreskowiak20-Feb-13 7:38 
GeneralRe: source code for navigation PinmemberJibesh20-Feb-13 8:32 
GeneralRe: source code for navigation PinmvpDave Kreskowiak20-Feb-13 11:24 
QuestionHow to Show GIF Image Transparent C# Pinmemberishrar19-Feb-13 21:53 
AnswerRe: How to Show GIF Image Transparent C# PinmemberAlan Balkany20-Feb-13 8:28 
QuestionInstall software and menus depending upon radion button selection option used in MSI Pinmembersjs4u19-Feb-13 19:33 
AnswerRe: Install software and menus depending upon radion button selection option used in MSI PinmvpEddy Vluggen20-Feb-13 0:31 
GeneralRe: Install software and menus depending upon radion button selection option used in MSI Pinmembersjs4u20-Feb-13 18:12 
GeneralRe: Install software and menus depending upon radion button selection option used in MSI PinmvpEddy Vluggen21-Feb-13 7:06 
Questionproject Pinmemberpramodrastogi9119-Feb-13 18:14 
AnswerRe: project PinmemberJibesh19-Feb-13 19:52 
AnswerRe: project PinmvpAbhinav S19-Feb-13 22:25 
AnswerRe: project PinmvpMarcus Kramer20-Feb-13 3:17 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.140718.1 | Last Updated 22 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid