Google Answers Logo
View Question
 
Q: Uploading files in binary mode ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: Uploading files in binary mode
Category: Computers > Programming
Asked by: semiclueless-ga
List Price: $10.00
Posted: 11 Feb 2004 05:49 PST
Expires: 12 Mar 2004 05:49 PST
Question ID: 305718
I am an amateur developing a website, and I need help with something
that is probably quite simple for a professional. I created a home
page using MS Publisher, and it links to a site I purchased from
e-classifieds.  It is possible for me to replace the e-classifieds
logo at the top of their page with my own logo. The instructions state
that I should "simply" save my own logo as a .jpg file (no problem so
far), and then upload it to the proper folder in binary mode.  Well, I
have no idea what is meant by binary mode or how to do this. I would
like to either get advice on how to do this or contract with someone
to do it for me. Will pay $10 for advice alone, $20 to have someone do
it for me. Thanks a lot!  LB

Request for Question Clarification by hammer-ga on 11 Feb 2004 06:18 PST
Do you know how to upload files at all? If so, please describe how you
do it. Binary mode is simply a setting, but where the setting is
depends on how you are uploading.

- Hammer

Clarification of Question by semiclueless-ga on 11 Feb 2004 07:31 PST
Well, I have uploaded complete website from MS Publisher using ftp. 
But I have never done anything beyond that to upload files after the
site has been published.  I've been fooling around with ftp locations
in Publisher, and can seem to navigate through the folders to get to
where I'm told the logo should be. But once I get there, and I see the
existing "logo.jpg" I am not sure what to do.  I can't seem to delete
what's already there, nor do I know how to replace it with my own
image that I have labeled as logo.jpg in My Documents.
Answer  
Subject: Re: Uploading files in binary mode
Answered By: hammer-ga on 11 Feb 2004 08:32 PST
Rated:5 out of 5 stars
 
OK, if you were able to set up an FTP location in Publisher, then you
must know your FTP login information. It also sounds like you know how
to navigate to the correct folder on the web server. So far, so good!

A command line version of FTP comes with Windows.

1. Open a command prompt.

2. Using cd, navigate to where your jpg is. For example, if your jpg
is in C:\MyWebsite\MyImages, type
cd C:\MyWebsite\MyImages  

You should now have a command prompt that looks something like this:
C:\MyWebsite\MyImages>

3. Type
ftp www.yourwebsite.com

and press Enter.

4. You should get a prompt asking for your login name. Type it in and
press Enter. It should then ask for your password. Type it in and
press Enter.

5. If your login is successful, you will now have an FTP prompt that
looks like this:
ftp>

6. Type 
pwd

and press Enter. The server will show the current directory. Use cd to
navigate to the directory where your jpg goes. Be aware that you may
need to use slashes instead of backslashes as directory separators,
depending on your web server OS.

7. Type 
bin

and press Enter. This tells ftp to transfer the file using binary
mode. Binary mode basically tells ftp not to mess with your file, but
just to transfer it exactly as is.

8. Type
send yourpic.jpg

and press Enter. FTP will transfer your file.

9. When it's done, type
bye

and press Enter to get out of FTP.

That's it! It's actually really easy. Most of the instructions above
involve making sure you are in the correct directories. If this is
something you are going to do regularly, you might want to pick up one
of the graphical FTP programs that give you a Windows Explorer like
interface. There are a number of these, both free and commercial.
While using the command line FTP, if you get into trouble, just type
'bye' to get out and start over from Step 3.

As to what this is all about, FTP has two transfer modes: ascii and
binary. Ascii is for text files (like web pages). In this mode, ftp
will adjust things like line feeds and carriage returns to be
appropriate to the target operating system. Binary mode is for files
like graphics or compressed files. In binary mode, ftp does not adjust
anything. It just sends the file as is. Many ftp programs decide which
mode to use based on the file type. If in doubt, choose binary.

There are many explanations of this concepts on the internet. Here is one:
FTP FAQ by WT.NET
http://www.wt.net/ftpfaq.shtml 

Please let me know if you need further clarification on this.

Search strategy: binary ascii ftp FAQ

- Hammer
semiclueless-ga rated this answer:5 out of 5 stars and gave an additional tip of: $3.50
Hammer - This researcher was quick, thorough, personable, and was very
good at breaking instructions down into simple and easy to follow
terms.  I had been struggling with a process for weeks on my own, and
Hammer helped me take care if it in no time.  Thank you so much!

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy