| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: Only want Partial file FTP |
| Mark@InterDataSoftware.Com Mark@InterDataSoftware.Com From: Brighton, CO USA Posts: 2 Member Since: 12/18/06 |
posted March 19, 2007 11:29 AM Hi, I need to FTP only part of a file. Say I have a 50MB file, I only need the first 100K or so (doesn't matter exactly how much). How can I accomplish this with the Dart FTP component in ASP.Net 2.0 ? Thanks, Mark Richards |
| Amit From: Rome, NY USA Posts: 315 Member Since: 03/15/06 |
posted March 19, 2007 4:42 PM Hello Mark, Currently there is no such property or method through which you can accomplish this directly. Mostly users like to FTP complete file. Here is a simple workaround which I have just tried at my end: (1) Login to the Server. Put a File of size of 100 MB. (2) Check the total amount of bytes transferred in the Progress Event (Looking at your records I came to know that you are using FTP for .NET). (3) If the bytes count reaches the size which we need on the server then abort the connection. You may use Abort method or AbortTransfer method. Difference between these methods is that Abort method closes the command as well as data port while AbortTransfer method closes only the data port. I hope this is of help. Regards, Amit |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|