Click here to Skip to main content
   

ASP.NET

 
QuestionCompleteWizardStep not working Pinmemberpier19897-Nov-12 6:47 
AnswerRe: CompleteWizardStep not working Pinmemberjkirkerx7-Nov-12 14:25 
QuestionHow to increase execution time Pinmembersilentspeaker7-Nov-12 3:48 
AnswerRe: How to increase execution time PinmentorKeith Barrow7-Nov-12 4:15 
AnswerRe: How to increase execution time PinmemberSentenryu7-Nov-12 4:17 
GeneralRe: How to increase execution time Pinmembersilentspeaker7-Nov-12 20:56 
QuestionFTP Files Downloader Pinmembersilentspeaker7-Nov-12 2:34 
AnswerRe: FTP Files Downloader Pinmemberdeflinek8-Nov-12 0:05 
AnswerRe: FTP Files Downloader Pinmembergopal pradhan9-Nov-12 0:10 
QuestionPosting a file as a property of a bigger object ASP.NET MVC3 [Solved (Kind Of)] PinmemberSentenryu6-Nov-12 7:54 
Answer"Resolution" PinmemberSentenryu7-Nov-12 4:12 
Questionsign in Popup like codeproject.com PinmemberRA|-|UL PATEL6-Nov-12 2:27 
AnswerRe: sign in Popup like codeproject.com PinmemberMatt U.6-Nov-12 3:14 
QuestionNeed help to upload 500 MB file on FTP Pinmembersilentspeaker6-Nov-12 1:39 
I am having problem in Uploading 500 MB File on web server
can anyone help me
 
Private Function UploadToFTP(ByVal fileToUpload As HttpPostedFile) As Boolean
 
Try
Dim uploadUrl As String = "ftp://........................."
Dim uploadFileName As String = fileToUpload.FileName
 
Dim streamObj As Stream = fileToUpload.InputStream
Dim buffer As [Byte]() = New [Byte](fileToUpload.ContentLength - 1) {}
streamObj.Read(buffer, 0, buffer.Length)
streamObj.Close()
streamObj = Nothing
 
Dim ftpUrl As String = String.Format("{0}/{1}", uploadUrl, uploadFileName)
Dim requestObj As FtpWebRequest = TryCast(FtpWebRequest.Create(ftpUrl), FtpWebRequest)
requestObj.Method = WebRequestMethods.Ftp.UploadFile
requestObj.Credentials = New NetworkCredential("UserID", "Password")
Dim requestStream As Stream = requestObj.GetRequestStream()
requestStream.Write(buffer, 0, buffer.Length)
requestStream.Flush()
requestStream.Close()
requestObj = Nothing
 
Return True
Catch ex As Exception
Return False
End Try
End Function

AnswerRe: Need help to upload 500 MB file on FTP PinmemberRichard Deeming6-Nov-12 2:32 
GeneralRe: Need help to upload 500 MB file on FTP Pinmembersilentspeaker6-Nov-12 4:31 
GeneralRe: Need help to upload 500 MB file on FTP PinmemberRichard Deeming6-Nov-12 5:05 
GeneralRe: Need help to upload 500 MB file on FTP Pinmembersilentspeaker6-Nov-12 5:38 
GeneralRe: Need help to upload 500 MB file on FTP PinmemberRichard Deeming6-Nov-12 5:59 
GeneralRe: Need help to upload 500 MB file on FTP Pinmembersilentspeaker6-Nov-12 6:05 
GeneralRe: Need help to upload 500 MB file on FTP PinmemberRichard Deeming6-Nov-12 6:16 
AnswerRe: Need help to upload 500 MB file on FTP [modified] Pinmemberjkirkerx7-Nov-12 14:45 
AnswerRe: Need help to upload 500 MB file on FTP Pinmemberxut24477-Nov-12 15:37 
QuestionHow to Get Local Area IP Address? PinmemberNandan Basak5-Nov-12 23:15 
AnswerRe: How to Get Local Area IP Address? PinmemberBernhard Hiller6-Nov-12 22:11 
GeneralRe: How to Get Local Area IP Address? PinmemberNandan Basak4-Dec-12 20:08 
AnswerRe: How to Get Local Area IP Address? Pinmemberrameshkashanna7-Nov-12 3:05 
GeneralRe: How to Get Local Area IP Address? PinmemberNandan Basak4-Feb-13 3:05 
QuestionAn error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. PinmemberRKSPradeep4-Nov-12 21:11 
JokeRe: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Pinmembern.podbielski4-Nov-12 21:52 
AnswerRe: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Pinmemberryanb315-Nov-12 6:37 
Questionvariable for aspx and all its ascx Pinmemberjrahma4-Nov-12 9:25 
AnswerRe: variable for aspx and all its ascx Pinmembern.podbielski4-Nov-12 11:17 
GeneralRe: variable for aspx and all its ascx PinmemberAmir Jalilifard5-Nov-12 9:15 
Questionhttpmodule, context.items.add("originalUrl") Pinmemberjkirkerx3-Nov-12 20:44 
Questionhow to split a page using frameset Pinmemberfahad.11-Nov-12 3:02 
AnswerRe: how to split a page using frameset Pinmemberjkirkerx4-Nov-12 8:58 
QuestionHow do I call a remote Web Service from an Asp.net application? PinmemberNada Adel1-Nov-12 0:28 
AnswerRe: How do I call a remote Web Service from an Asp.net application? PinmentorKeith Barrow1-Nov-12 6:54 
AnswerRe: How do I call a remote Web Service from an Asp.net application? PinmemberMathlab2-Nov-12 7:22 
AnswerRe: How do I call a remote Web Service from an Asp.net application? [modified] Pinmemberjkirkerx2-Nov-12 19:41 
Generalasp.net Pinmemberrifayee31-Oct-12 23:50 
GeneralRe: asp.net PinmemberThink On1-Nov-12 5:39 
GeneralRe: asp.net Pinmemberrifayee1-Nov-12 20:13 
GeneralRe: asp.net Pinmembermark merrens1-Nov-12 14:16 
GeneralRe: asp.net PinmemberThink On1-Nov-12 21:29 
Questionwhat is different between DataAdapter.Update( ) and DataSetAcceptChange( ) in ADO.Net PinmemberRKSPradeep31-Oct-12 20:58 
AnswerRe: what is different between DataAdapter.Update( ) and DataSetAcceptChange( ) in ADO.Net PinmvpSandeep Mewara3-Nov-12 8:43 
QuestionHow to implement a component that facilitates Sftp in .net PinmemberMember 787327431-Oct-12 20:56 
AnswerRe: How to implement a component that facilitates Sftp in .net PinmvpSandeep Mewara3-Nov-12 8:46 

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
Web04 | 2.8.150224.1 | Last Updated 27 Feb 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid