Discuss (FTP), (FTP on .NET CF) and (FTPS, SFTP and SCP).
no avatar
User

PaulT

Posts

8

Joined

Sat Sep 22, 2012 10:06 pm

Location

Essex, UK.

Occasional JPEG corruption with edtFTPNet Free version

by PaulT » Sat Sep 22, 2012 10:23 pm

I am using edtFTPNet Free version 2.2.2 with VB.NET 2010. My program needs to upload small jpeg files (about 50KB) via FTP to my website. It does this quite frequently; sometimes 1 file every minute. A small javascript file is also transferred with every image. About 1 image in 10 suffers some corruption like this:

Image

Please ignore the noise bars! It's the light brown coloured area at the bottom of the image I am referring to. Sometimes reloading the image from the server clears the corruption, but more often it does not. On many (but not all) occasions, the corruption disappears after several more images have been transferred, almost as if some data has been left in a buffer which is eventually transferred after several other FTP transactions have been completed. Any suggestions on debugging this problem?

Thanks,

Paul.
no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Sun Sep 23, 2012 7:37 am

The best thing to do is to enabled logging at the DEBUG level and analyse the log-messages for a corrupted transfer. Post it here if you'd like some help analysing it.

- Hans (EnterpriseDT)
no avatar
User

PaulT

Posts

8

Joined

Sat Sep 22, 2012 10:06 pm

Location

Essex, UK.

by PaulT » Sun Sep 23, 2012 6:27 pm

no avatar
User

PaulT

Posts

8

Joined

Sat Sep 22, 2012 10:06 pm

Location

Essex, UK.

by PaulT » Mon Sep 24, 2012 12:57 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Mon Sep 24, 2012 7:47 am

no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Mon Sep 24, 2012 11:38 am

no avatar
User

PaulT

Posts

8

Joined

Sat Sep 22, 2012 10:06 pm

Location

Essex, UK.

by PaulT » Mon Sep 24, 2012 6:39 pm

no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Tue Sep 25, 2012 7:43 am

no avatar
User

PaulT

Posts

8

Joined

Sat Sep 22, 2012 10:06 pm

Location

Essex, UK.

by PaulT » Tue Sep 25, 2012 5:57 pm

Last edited by PaulT on Tue Sep 25, 2012 10:52 pm, edited 1 time in total.
no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Tue Sep 25, 2012 7:39 pm

no avatar
User

PaulT

Posts

8

Joined

Sat Sep 22, 2012 10:06 pm

Location

Essex, UK.

by PaulT » Tue Sep 25, 2012 9:38 pm

no avatar
User

PaulT

Posts

8

Joined

Sat Sep 22, 2012 10:06 pm

Location

Essex, UK.

by PaulT » Fri Sep 28, 2012 4:23 am

Hans - thank you for your support. I'm having trouble creating a test setup for you to try. I may have reduced (or even eliminated) the problem by changing the TransferBufferSize to 4096. I just transferred about 30 images and all were perfect. I think I will leave this problem for a while and concentrate on some other areas of my program. I will post again if I make any further progress.

Thanks again :D
no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Fri Sep 28, 2012 1:50 pm

no avatar
User

PaulT

Posts

8

Joined

Sat Sep 22, 2012 10:06 pm

Location

Essex, UK.

by PaulT » Fri Sep 28, 2012 11:36 pm

Hans - do you know where I can find an example of doing an FTP transfer from a VB.NET MemoryStream rather than from a file? The UploadFile command is obviously looking only for a string containing a filename. Just an idea I'm working on ... changing the TransferBuffer size has not eliminated my problem.

Thanks,

Paul.

EDIT: Sorry - I think I've just found it! UploadStream instead of UploadFile :oops:

Who is online

Users browsing this forum: Google [Bot] and 27 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron