Click here to Skip to main content
15,898,978 members
Home / Discussions / C#
   

C#

 
AnswerRe: 1st year IT student seeking mentor Pin
Blue_Boy12-Aug-11 4:22
Blue_Boy12-Aug-11 4:22 
AnswerRe: 1st year IT student seeking mentor Pin
OriginalGriff12-Aug-11 8:53
mveOriginalGriff12-Aug-11 8:53 
Questionhow to connect biometric device in c# .net Pin
harshal4patil11-Aug-11 23:27
harshal4patil11-Aug-11 23:27 
AnswerRe: how to connect biometric device in c# .net Pin
Pete O'Hanlon12-Aug-11 0:08
mvePete O'Hanlon12-Aug-11 0:08 
QuestionGoal Seek Pin
vmaxp11-Aug-11 22:46
vmaxp11-Aug-11 22:46 
SuggestionPlease explain Pin
MicroVirus12-Aug-11 4:47
MicroVirus12-Aug-11 4:47 
AnswerRe: Goal Seek Pin
Ravi Bhavnani14-Aug-11 4:32
professionalRavi Bhavnani14-Aug-11 4:32 
Questionhaving problem to translate from WinForm to Windows-CE C# program - FTP transfer [modified] Pin
Gali197811-Aug-11 21:27
Gali197811-Aug-11 21:27 
having problem to translate from WinForm to Windows-CE C# program - FTP transfer

i have this code for transfer from Local computer to FTP server

its work excellent on WinForm, i must have this on Windows-CE and it dosnt work

the code:

C#
string MyFile = @"d:\PC.sdf";

            string url = "ftp://127.0.0.1/PC.sdf";
            FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(url);

            request.Method = WebRequestMethods.Ftp.UploadFile;
            //request.Credentials = new NetworkCredential("user name", "password");
            request.UsePassive = true;
            request.UseBinary = true;
            request.KeepAlive = false;

            //byte[] buffer = File.ReadAllBytes(MyFile);

            using (Stream reqStream = request.GetRequestStream())
            {
                int count = 0;
                byte[] buffer = new byte[100];
                using (FileStream file = new FileStream(MyFile, FileMode.Open))
                {
                    while ((count = file.Read(buffer, 0, 100)) > 0)
                    {
                        reqStream.Write(buffer, 0, count);
                    }
                }

            }


in WinCE there isnt FtpWebRequest or FtpWebRequest

i think that i need to use OpenNetCF ????

can i get any C# sample code for this ?

modified on Friday, August 12, 2011 6:08 AM

AnswerRe: having problem to translate from WinForm to Windows-CE C# program - FTP transfer Pin
OriginalGriff11-Aug-11 21:34
mveOriginalGriff11-Aug-11 21:34 
QuestionEnterprise library log to Oracle Pin
V.11-Aug-11 21:17
professionalV.11-Aug-11 21:17 
QuestionSelecting parts of an uint so always the same size? Pin
stephen.darling11-Aug-11 19:11
stephen.darling11-Aug-11 19:11 
AnswerRe: Selecting parts of an uint so always the same size? Pin
Peter_in_278011-Aug-11 19:38
professionalPeter_in_278011-Aug-11 19:38 
GeneralRe: Selecting parts of an uint so always the same size? Pin
stephen.darling11-Aug-11 19:45
stephen.darling11-Aug-11 19:45 
AnswerRe: Selecting parts of an uint so always the same size? Pin
David198711-Aug-11 22:24
David198711-Aug-11 22:24 
AnswerRe: Selecting parts of an uint so always the same size? Pin
BobJanova11-Aug-11 23:19
BobJanova11-Aug-11 23:19 
AnswerRe: Selecting parts of an uint so always the same size? Pin
Lutosław11-Aug-11 23:40
Lutosław11-Aug-11 23:40 
GeneralRe: Selecting parts of an uint so always the same size? Pin
stephen.darling12-Aug-11 0:21
stephen.darling12-Aug-11 0:21 
GeneralRe: Selecting parts of an uint so always the same size? Pin
jschell12-Aug-11 8:44
jschell12-Aug-11 8:44 
GeneralRe: Selecting parts of an uint so always the same size? Pin
stephen.darling12-Aug-11 9:04
stephen.darling12-Aug-11 9:04 
QuestionOnClosing event doesn't work Pin
MAW3011-Aug-11 11:28
MAW3011-Aug-11 11:28 
AnswerRe: OnClosing event doesn't work Pin
Alan N11-Aug-11 12:50
Alan N11-Aug-11 12:50 
Questionhot to transfer from FTP to local directory on my computer in C# Pin
Gali197811-Aug-11 10:45
Gali197811-Aug-11 10:45 
QuestionUploading File from Client to Server Pin
akosidandan11-Aug-11 9:11
akosidandan11-Aug-11 9:11 
AnswerRe: Uploading File from Client to Server Pin
Not Active11-Aug-11 9:40
mentorNot Active11-Aug-11 9:40 
GeneralRe: Uploading File from Client to Server Pin
akosidandan11-Aug-11 16:19
akosidandan11-Aug-11 16:19 

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.