Click here to Skip to main content
15,881,852 members
Home / Discussions / C#
   

C#

 
GeneralRe: Calling a C function from C# and getting values from it. Pin
Luc Pattyn30-Jun-09 4:03
sitebuilderLuc Pattyn30-Jun-09 4:03 
AnswerRe: Calling a C function from C# and getting values from it. Pin
Luc Pattyn30-Jun-09 4:09
sitebuilderLuc Pattyn30-Jun-09 4:09 
GeneralRe: Calling a C function from C# and getting values from it. Pin
shivapriyak30-Jun-09 20:03
shivapriyak30-Jun-09 20:03 
GeneralRe: Calling a C function from C# and getting values from it. Pin
Luc Pattyn30-Jun-09 22:57
sitebuilderLuc Pattyn30-Jun-09 22:57 
QuestionSQLite in C# Pin
stancrm30-Jun-09 2:35
stancrm30-Jun-09 2:35 
AnswerRe: SQLite in C# Pin
Pete O'Hanlon30-Jun-09 2:39
mvePete O'Hanlon30-Jun-09 2:39 
AnswerRe: SQLite in C# Pin
SeMartens30-Jun-09 2:41
SeMartens30-Jun-09 2:41 
QuestionHow to Upload large size file to server Pin
wasimsharp30-Jun-09 2:21
wasimsharp30-Jun-09 2:21 
Hi friend i am creating WindowDesktop application that will upload a large size of file to the server.
now when i upload file of small size its uploaded with no problem but when i upload large size of 62Mb or so it throw exception. can any body tell me that how can i upload large file and can i also pause uploading and resume Uploading feature
<pre

filestream="" stream="new" filestream("c:\\xyz.zip",="" filemode.open);


="" byte[]="" buffer="new" byte[stream.length];
="" int="" i="0;
" while="" ((i="stream.Read(buffer,0," buffer.length))&gt;0)
="" {

="" ftpwebrequest="" request="(FtpWebRequest)FtpWebRequest.Create("ftp://ftp.abc.com/"" +="" path.getfilename("c:\\xyz.zip"));
="" try
="" {
="" request.method="WebRequestMethods.Ftp.UploadFile;
" request.credentials="new" networkcredential("demo123",="" "demo123");
="" request.usepassive="true;
" request.usebinary="true;
" request.keepalive="false;
"
="" request.timeout="int.MaxValue;

" reqstream="request.GetRequestStream();
" reqstream.write(buffer,="" 0,="" buffer.length);
="" reqstream.beginwrite(buffer,="" buffer.length,="" callback,="" "aa");
="" reqstream.close();
="" }
="" catch="" (exception="" ex)
="" stream.close();="">


i use both Write and BeginWrite method



WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP

AnswerRe: How to Upload large size file to server Pin
Vimalsoft(Pty) Ltd30-Jun-09 2:28
professionalVimalsoft(Pty) Ltd30-Jun-09 2:28 
GeneralRe: How to Upload large size file to server Pin
wasimsharp30-Jun-09 2:33
wasimsharp30-Jun-09 2:33 
GeneralRe: How to Upload large size file to server Pin
Vimalsoft(Pty) Ltd30-Jun-09 2:37
professionalVimalsoft(Pty) Ltd30-Jun-09 2:37 
GeneralRe: How to Upload large size file to server Pin
musefan30-Jun-09 2:40
musefan30-Jun-09 2:40 
GeneralRe: How to Upload large size file to server Pin
Vimalsoft(Pty) Ltd30-Jun-09 2:42
professionalVimalsoft(Pty) Ltd30-Jun-09 2:42 
GeneralRe: How to Upload large size file to server Pin
musefan30-Jun-09 2:43
musefan30-Jun-09 2:43 
GeneralRe: How to Upload large size file to server Pin
Vimalsoft(Pty) Ltd30-Jun-09 2:47
professionalVimalsoft(Pty) Ltd30-Jun-09 2:47 
GeneralRe: How to Upload large size file to server Pin
musefan30-Jun-09 2:58
musefan30-Jun-09 2:58 
AnswerRe: How to Upload large size file to server Pin
musefan30-Jun-09 2:33
musefan30-Jun-09 2:33 
GeneralRe: How to Upload large size file to server Pin
wasimsharp30-Jun-09 2:42
wasimsharp30-Jun-09 2:42 
AnswerRe: How to Upload large size file to server Pin
musefan30-Jun-09 3:01
musefan30-Jun-09 3:01 
AnswerRe: How to Upload large size file to server Pin
Anthony Mushrow30-Jun-09 3:08
professionalAnthony Mushrow30-Jun-09 3:08 
QuestionMySQL restore database through c# Pin
mariamkhaqan30-Jun-09 2:06
mariamkhaqan30-Jun-09 2:06 
AnswerRe: MySQL restore database through c# Pin
Pavel123123__27-Oct-09 5:32
Pavel123123__27-Oct-09 5:32 
GeneralRe: MySQL restore database through c# Pin
adiono26-Dec-09 23:52
adiono26-Dec-09 23:52 
GeneralRe: MySQL restore database through c# Pin
ogimenezb31-May-11 6:05
ogimenezb31-May-11 6:05 
QuestionSql query designer Pin
Dushan12330-Jun-09 1:28
Dushan12330-Jun-09 1:28 

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.