post your comment   print   send to a friend
Rate:   0% | Views: 210
Question categories:  Web Design

What is the difference between ASCII and Binary mode?

HTML (or text based files) should be transferred in ASCII mode. All executable programs, compressed files, and image/picture files should be transferred in Binary mode.

Uploading text-based files in Binary mode will append ^M's to the end of every line. With HTML files, your browser will ignore the appended file name. However, other text files such as CGI scripts will not. Uploading CGI scripts in binary will damage them, causing a server 500 error. Damage will occur because binary mode has added ^M's to the end of every line - characters that are not supposed to be in the program.

If you try to upload an image in ASCII mode, you will see a garbled mess of coding on the page where the image is was to have appeared. ASCII mode, in this case, has corrupted the binary coding in the .jpg or .gif image.

NOTE: If you should accidentally load an image in ASCII mode, just re-upload it in Binary format.

REMEMBER: Upload HTML documents in ASCII mode. Upload Perl, etc., scripts in ASCII mode. Anything that you can view with a text editing program should be transferred in ASCII mode. Binary files such as gif or jpeg images, zip files, executables, etc should be transferred in BINARY mode.

Customer Feedback
Rate:   0% | Views: 210 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Domain Name Registration | Web Page Design    Back to serch results
Browse the Base
Knowledge Base
Web Design
  Trellix SiteBuilder
  FrontPage
  Professional Design
  Do It Yourself
  WSC Website Builder
Messages
 

Get Insider Info and Tips on the Aplus.Net Blog!

It's here! Introducing The Aplus.Net official blog. Check in as we run down the issues important to the web hosting industry, and offer tips and advice on how to make your website the best it can be. You can even post comments and suggest ideas. Get involved with the Aplus.Net community!
Visit the Aplus.Net Blog today!

Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. What exactly is HTML?
 
2. What about Hypertext Markup Language?
 
3. What is Body Tag?
 
4. How to place Headings on your page and how to use the Font Tags?
 
5. What is a HYPERLINK?
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest