Neden iletmeden önce kodlamak görüntüleri base64 gerekiyor?

3 Cevap php

Possible Duplicate:
What is the use of base 64 encoding?

HTTP protokolü üzerinden iletmeden önce kodlamak görüntüleri base64 birçok kod parçaları gördüm.

Bunu neden ihtiyacım var ben merak ediyorum?

3 Cevap

Bu gerekli değildir, ancak ek HTTP isteklerini (bazı durumlarda, bu mümkün değildir ve izin nerede,) yapmadan görüntüleri gömmek sağlar.

Wikipedia girişi itibaren Base64:

The term Base64 refers to a specific MIME content transfer encoding. It is also used as a generic term for any similar encoding scheme that encodes binary data by treating it numerically and translating it into a base 64 representation. The particular choice of base is due to the history of character set encoding: one can choose a set of 64 characters that is both part of the subset common to most encodings, and also printable. This combination leaves the data unlikely to be modified in transit through systems, such as email, which were traditionally not 8-bit clean.

Ve özellikle HTTP ile ilgili:

Base64 encoding can be helpful when fairly lengthy identifying information is used in an HTTP environment. For example, a database persistence framework for Java objects might use Base64 encoding to encode a relatively large unique id (generally 128-bit UUIDs) into a string for use as an HTTP parameter in HTTP forms or HTTP GET URLs. Also, many applications need to encode binary data in a way that is convenient for inclusion in URLs, including in hidden web form fields, and Base64 is a convenient encoding to render them in not only a compact way, but in a relatively unreadable one when trying to obscure the nature of data from a casual human observer.

HTTP protokolü "8 bit temiz" olması garanti edilmez, bu yüzden ikili akışı cendereye olabilir.