Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: File truncation with .Store method
mvanaltena

From: New Meadows, ID USA
Posts: 3
Member Since: 11/20/02
posted November 20, 2002 10:23 AM

A program is depositing 3 files to an FTP site - 1 text, 2 PDF files. The text file and 2nd PDF file have no problems, but the 1st PDF file is consistently being deposited with a file size of 50 - 150 bytes, while the actual file size is 10 - 80 KB. No error is being returned by the .Store method. Any ideas on how to diagnose and fix this problem ?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted November 20, 2002 10:49 AM

It sounds like you have the transfer type set to Ascii for the pdf file. It should be set to Image
mvanaltena

From: New Meadows, ID USA
Posts: 3
Member Since: 11/20/02
posted November 20, 2002 11:00 AM

I'll try that change. I'm curious as to why this is only happening to one of the two PDF files. Could file size be an issue ? The one that is being truncated has a larger file size than the one that is making it through.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted November 20, 2002 11:20 AM

I misread your post, I read 50 - 150 bytes as kbytes which would be consistent with Ascii - Image problems. Either way, you should not be using Ascii for a PDF, but I doubt that is causing the problem your are seeing.

Check the contents of the file, I'll bet the contents of the first pdf is actually the name of the file. When you called store, the file was probably not found so we assumed that you were trying to store a string rather than a file.

If the file was found and it was in use, and you got no error, then you should get the latest update. That problem was fixed a while ago. Here's a link:

http://www.dart.com/downloads/update.exe

mvanaltena

From: New Meadows, ID USA
Posts: 3
Member Since: 11/20/02
posted November 22, 2002 4:02 PM

You were right, Tony. The contents of the PDF file were the file name, which was not found due to a typo in the code. Fixing the file name solved the problem. Whether the type is ASCII or image doesn't seem to matter in this case.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted November 22, 2002 4:42 PM

The server must be IIS or something else running on a Windows platform. Image and ASCII only make a difference if the server (or client) is on UNIX ( or Mac I guess )
rdeil

From: Toronto, ON Canada
Posts: 5
Member Since: 03/31/04
posted April 1, 2004 9:46 AM

Tony - Is the update.exe you posted here the most recent - I downloaded it but can't tell the original file version or date.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 1, 2004 9:49 AM

The one from our website is most recent:

http://www.dart.com/downloads/update.exe

You should apply the most recent toolkit install also:

http://www.dart.com/downloads/ftptool.exe
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX