LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   JPG corrupted after FTP-upload in ASCII mode (https://www.linuxquestions.org/questions/linux-networking-3/jpg-corrupted-after-ftp-upload-in-ascii-mode-846015/)

truboy 11-23-2010 07:22 AM

JPG corrupted after FTP-upload in ASCII mode
 
Hi everyone !

I just uploaded JPG pics from a Win XP, through shell, on my FTP.
When I downloaded them back (to a UNIX machine), they were all currupted and unreadable !
After some researches, I found that Win XP's shell works by default in ASCII mode.

Does anybody know a way to recover the pics ?

Thank you for your help !

sarajevo 11-24-2010 12:04 AM

after log to ftp, before start file transfer issue
Code:

binary
or whatever else supported on your ftp server...but point is to transfer file in binary format...

John VV 11-24-2010 01:17 AM

binary is the DEFAULT for every ftp program i have used ( even on xp - filezilla )

Quote:

Does anybody know a way to recover the pics ?
maybe but i give it about a LESS than a 1% chance
if you know the EXACT SIZE . The width and height of ALL the images ( ex. 600 x 800 pixels )
then importing them into imagemagic "display" might work


you might see if you can dl them in ascii

truboy 11-24-2010 01:30 AM

Quote:

Originally Posted by John VV (Post 4169114)
then importing them into imagemagic "display" might work


you might see if you can dl them in ascii

Yeah I've tried nearly every combination possible but no results :(

I'm gonna give imagemagic a try !

I found some perl scripts that didn't work for me, but I post them here for next time ;) : http://www.orafaq.com/forum/t/100512/2/

Thank you !


All times are GMT -5. The time now is 09:19 AM.