About Embedded Image Source

Hello all

I found it is a good way to embed images in source.
But I got a question that how can I get the embed image code from a image file.

I tried open&read() from a jpg file. But what I got is not a valid image code.

Thanks a lot

Jia Lu

···

--
-- Jia LU
<http://www.lujia.us>
Registered Linux user #434792
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')])
for p in '001akor@liamg.moc'.split('@')])"
--
\ "Unix is an operating system, OS/2 is half an operating system, |
  `\ Windows is a shell, and DOS is a boot partition virus." -- |
_o__) Peter H. Coffin |