hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Corrupt imges uploading

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Frequently Asked Questions
View previous topic :: View next topic  
Author Message
javidt



Joined: 14 Oct 2009
Posts: 4

PostPosted: Wed Oct 14, 2009 7:46 am    Post subject: Corrupt imges uploading Reply with quote

Hi¡
I'm triying to upload some files to a UNIX pasive FTP server with "Ftp Commands" using this FTP Script:

USER z-tims-aci
PASS $PASSWORD$
PWD
PASV
$$LCD::$%ComprImagBatches::CurrentSubdirectoryPath%$
TYPE I
$$MPUT::.tif
TYPE A
$$MPUT::.xml
$$MPUT::.mkr


There is no errors and this is the log generated:

Oct 14, 2009 5:47:39 PM

Ftp Commands - FTPFilesToAHE - Local directory is: C:\Documents and Settings\es. Please set local directory using: $$LCD::local_dir_path

Oct 14, 2009 5:47:39 PM

Ftp Commands - FTPFilesToAHE - USER z-tims-aci

Oct 14, 2009 5:47:39 PM

Ftp Commands - FTPFilesToAHE - 331 Password required for z-tims-aci.

Oct 14, 2009 5:47:39 PM

Ftp Commands - FTPFilesToAHE - PASS $PASSWORD$

Oct 14, 2009 5:47:39 PM

Ftp Commands - FTPFilesToAHE - 230 User z-tims-aci logged in.

Oct 14, 2009 5:47:39 PM

Ftp Commands - FTPFilesToAHE - PWD

Oct 14, 2009 5:47:39 PM

Ftp Commands - FTPFilesToAHE - 257 "/" is current directory.

Oct 14, 2009 5:47:39 PM

Ftp Commands - FTPFilesToAHE - $$LCD:Very Happy:\FTPTransfer\POD_Imaging\XML_Destino\B08102009110402

Oct 14, 2009 5:47:39 PM

Ftp Commands - FTPFilesToAHE - Local directory is: D:\FTPTransfer\POD_Imaging\XML_Destino\B08102009110402

Oct 14, 2009 5:47:39 PM

Ftp Commands - FTPFilesToAHE - TYPE I

Oct 14, 2009 5:47:39 PM

Ftp Commands - FTPFilesToAHE - 200 Type set to I.

Oct 14, 2009 5:47:39 PM

Ftp Commands - FTPFilesToAHE - $$MPUT::.tif

Oct 14, 2009 5:47:40 PM

Transferred:D:\FTPTransfer\POD_Imaging\XML_Destino\B08102009110402\BatchImage_B08102009110402_SVQ_01_001.tif , To: BatchImage_B08102009110402_SVQ_01_001.tif

Oct 14, 2009 5:47:41 PM

Transferred:D:\FTPTransfer\POD_Imaging\XML_Destino\B08102009110402\BatchImage_B08102009110402_SVQ_01_124.tif , To: BatchImage_B08102009110402_SVQ_01_124.tif

Oct 14, 2009 5:47:41 PM

Transferred:D:\FTPTransfer\POD_Imaging\XML_Destino\B08102009110402\BatchImage_B08102009110402_SVQ_01_125.tif , To: BatchImage_B08102009110402_SVQ_01_125.tif

Oct 14, 2009 5:47:41 PM

Ftp Commands - FTPFilesToAHE - TYPE A

Oct 14, 2009 5:47:41 PM

Ftp Commands - FTPFilesToAHE - 200 Type set to A.

Oct 14, 2009 5:47:41 PM

Ftp Commands - FTPFilesToAHE - $$MPUT::.xml

Oct 14, 2009 5:47:43 PM

Transferred:D:\FTPTransfer\POD_Imaging\XML_Destino\B08102009110402\BatchControl_B08102009110402_SVQ_01.xml , To: BatchControl_B08102009110402_SVQ_01.xml

Oct 14, 2009 5:47:43 PM

Ftp Commands - FTPFilesToAHE - $$MPUT::.mkr

Oct 14, 2009 5:47:43 PM

Transferred:D:\FTPTransfer\POD_Imaging\XML_Destino\B08102009110402\BatchMarker_B08102009110402_SVQ_01.mkr , To: BatchMarker_B08102009110402_SVQ_01.mkr

Oct 14, 2009 5:47:43 PM

Ftp Commands - FTPFilesToAHE - End Instance = 24 , Exit Code = 0 , Runtime (ms) = 4203




But when i try to open the image files they are corrupt but the XML is right

When I tri to do that using the "ftp" task and set the transfer type to Auto it works fine but my problem is that i need to do this transfer in a specific order, first the *.tif files, second the *.xml files and finally the *.mkr file and in the "ftp" task cannot specify the order of the uploading.

Maybe i need some moree commands to connect with the unix server?

Thanks and regards form Spain.
Back to top
View user's profile Send private message MSN Messenger
melvin
Site Admin


Joined: 25 May 2006
Posts: 635
Location: Santa Barbara, california

PostPosted: Wed Oct 14, 2009 8:49 pm    Post subject: Reply with quote

The script seems fine to me. Even the response indicates binary and ascii modes are set for .tif and .xml respectively. Not sure what else could be the problem.

options:
1) try the FTP-j command task
2) chain a FTP task (for .tif) and FTP command task for (.xml and .mkr)
Back to top
View user's profile Send private message Send e-mail
javidt



Joined: 14 Oct 2009
Posts: 4

PostPosted: Wed Oct 14, 2009 11:38 pm    Post subject: Reply with quote

Thanks Melvin for your quick response¡
Ok will try with FTP-J command task and will inform you with the conclusions, but i don't understand what the diferece is between FTP and FTP-J.
The second opton is not valid for me because i need to do all transfer in the same session and if I do it in two different tasks the program will login and logout two times.
Regards form spain
Back to top
View user's profile Send private message MSN Messenger
javidt



Joined: 14 Oct 2009
Posts: 4

PostPosted: Thu Oct 15, 2009 2:47 am    Post subject: Reply with quote

Problem solved¡¡¡
Finally I've created a new FTP-J profile and a new ftp command task with this script:
$$LCD::$%ComprImagBatches::CurrentSubdirectoryPath%$

TYPE I

$$MPUT::.tif

TYPE A
$$MPUT::.xml
$$MPUT::.mkr

$$MLDEL::


And by now all is working fine, in fact i've found this thing in the log that i think solve problem

Oct 15, 2009 12:43:58 PM

Ftp Commands - FTPFilesToAHE-J - Command : FEAT

Oct 15, 2009 12:43:58 PM

Ftp Commands - FTPFilesToAHE-J - Response : 211-FEAT

SIZE

MDTM

211 END


Could you explain me what means exactly the "FEAT" command?

Regards
Back to top
View user's profile Send private message MSN Messenger
Robert
Site Admin


Joined: 25 May 2006
Posts: 1140

PostPosted: Thu Oct 15, 2009 7:26 am    Post subject: Reply with quote

FEAT is a command asking the server to list all the new features it supports.

for instance, if server returns MLSD in its feature list, then the client may use MLSD command instead of LIST command to get directory listing.
Back to top
View user's profile Send private message
javidt



Joined: 14 Oct 2009
Posts: 4

PostPosted: Thu Oct 15, 2009 7:29 am    Post subject: Reply with quote

In that case i don't understand why it works with FTP-J but not work with FTP.
Regards
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Frequently Asked Questions All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group