Click here to Skip to main content
       

ASP.NET

 
QuestionFTP Files Downloader Pinmembersilentspeaker7-Nov-12 1:34 
AnswerRe: FTP Files Downloader Pinmemberdeflinek7-Nov-12 23:05 
AnswerRe: FTP Files Downloader Pinmembergopal pradhan8-Nov-12 23:10 
QuestionPosting a file as a property of a bigger object ASP.NET MVC3 [Solved (Kind Of)] PinmemberSentenryu6-Nov-12 6:54 
Answer"Resolution" PinmemberSentenryu7-Nov-12 3:12 
Questionsign in Popup like codeproject.com PinmemberRA|-|UL PATEL6-Nov-12 1:27 
AnswerRe: sign in Popup like codeproject.com PinmemberMatt U.6-Nov-12 2:14 
QuestionNeed help to upload 500 MB file on FTP Pinmembersilentspeaker6-Nov-12 0: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 1:32 
GeneralRe: Need help to upload 500 MB file on FTP Pinmembersilentspeaker6-Nov-12 3:31 
GeneralRe: Need help to upload 500 MB file on FTP PinmemberRichard Deeming6-Nov-12 4:05 
GeneralRe: Need help to upload 500 MB file on FTP Pinmembersilentspeaker6-Nov-12 4:38 
GeneralRe: Need help to upload 500 MB file on FTP PinmemberRichard Deeming6-Nov-12 4:59 
GeneralRe: Need help to upload 500 MB file on FTP Pinmembersilentspeaker6-Nov-12 5:05 
GeneralRe: Need help to upload 500 MB file on FTP PinmemberRichard Deeming6-Nov-12 5:16 
AnswerRe: Need help to upload 500 MB file on FTP [modified] Pinmemberjkirkerx7-Nov-12 13:45 
AnswerRe: Need help to upload 500 MB file on FTP Pinmemberxut24477-Nov-12 14:37 
QuestionHow to Get Local Area IP Address? PinmemberNandan Basak5-Nov-12 22:15 
AnswerRe: How to Get Local Area IP Address? PinmemberBernhard Hiller6-Nov-12 21:11 
GeneralRe: How to Get Local Area IP Address? PinmemberNandan Basak4-Dec-12 19:08 
AnswerRe: How to Get Local Area IP Address? Pinmemberrameshkashanna7-Nov-12 2:05 
GeneralRe: How to Get Local Area IP Address? PinmemberNandan Basak4-Feb-13 2: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 20: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 20: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 5:37 

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.140814.1 | Last Updated 20 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid