Problems with netget, netput and FTP

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
4 posts • Page 1 of 1
yosu
Posts:22
Joined: Wed Mar 14, 2012 4:14 pm

Problems with netget, netput and FTP

Post by yosu »

Hello:

I am trying to read an image jpg from a FTP with netget and netput functions in WinCCOA 3.14. The netget function seems to get the image content correctly but when I try to put the image with a new name in the same FTP, the netput command only send 4 bytes (ff d8 ff e0, the jpg signature), until it finds a 0x00 hexadecimal value in the content.

I write this small test program:

mapping m;
blob content;

string url="ftp://anonymous:anonymous@192.168.1.11/";
if (netGet(url+"test.jpg", content, m)==-1){
DebugN("error receiving>> "+m);
}
//DebugN("debug>>Content: "+content);

if (netPut(url+"new.jpg", content , m)==-1){
DebugN("error sending>> "+m);
}
DebugN("debug>>m: "+m);


Anyone with this problem?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Problems with netget, netput and FTP

Post by mkoller »

Ouch - seems you hit a bug.
Fixed that now.
I'll see that we can ship the fix also in the next patch

yosu
Posts:22
Joined: Wed Mar 14, 2012 4:14 pm

Re: Problems with netget, netput and FTP

Post by yosu »

Is there any bug bounty program? a free development WinCCOA license? ;-)

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Problems with netget, netput and FTP

Post by mkoller »

Yes. After the fix you get a product with one bug less :-))

4 posts • Page 1 of 1