Page 1 of 1

images encode

Posted: Fri Sep 10, 2004 3:00 pm
by ol4pr0
Hello ya all.

I live in a country where broadband cable is still a 6.3k down speed "GrR lol " so i wan wondering if it be smart to have all images encoded.

so instead of using <img src using base64_decode

Would that be way faster?

Posted: Fri Sep 10, 2004 3:01 pm
by feyd
ol4pro wrote:Would that be way faster?
never.

base64 encoding converts 3 8-bit bytes into 4 6-bit bytes... it's strictly a transform, nothing more.

Posted: Fri Sep 10, 2004 3:19 pm
by hedge
base64 doesn't compress.. in fact the size increases by about 1/3, besides what browser would know to decode it?

Posted: Fri Sep 10, 2004 3:21 pm
by feyd
hedge wrote:what browser would know to decode it?
it'd have to be transmitted in the header's content-encoding.. you would need to determine if the browser supported the encoding in the first place however.. which is generally sent in to connection headers..

Posted: Fri Sep 10, 2004 4:04 pm
by ol4pr0
thanks for clearning that up for me.