LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-23-2010, 08:22 AM   #1
truboy
Member
 
Registered: Oct 2010
Location: Switzerland
Posts: 84

Rep: Reputation: 9
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 !
 
Old 11-24-2010, 01:04 AM   #2
sarajevo
Member
 
Registered: Apr 2005
Distribution: Debian, OpenBSD,Fedora,RedHat
Posts: 228
Blog Entries: 1

Rep: Reputation: 31
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...
 
Old 11-24-2010, 02:17 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,400

Rep: Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584Reputation: 2584
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
 
1 members found this post helpful.
Old 11-24-2010, 02:30 AM   #4
truboy
Member
 
Registered: Oct 2010
Location: Switzerland
Posts: 84

Original Poster
Rep: Reputation: 9
Quote:
Originally Posted by John VV View Post
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 !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP "ASCII" Mode posixculprit Linux - Newbie 2 06-08-2010 03:28 PM
Is there an ftp program that allows for multi-thread ftp uploads ? Want faster upload brjoon1021 Linux - Software 4 02-04-2009 07:28 PM
FTP upload stalls in binary mode (56K dialup) dogpatch Linux - Software 0 09-06-2007 06:45 AM
FTP ascii mode messed up my files! :-( Ictus Linux - General 9 03-31-2006 04:19 PM
ASCII mode in Xwindow... Red Guy Linux - Newbie 4 06-01-2002 10:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration