来自 :http://www.opentle.org/th/node/6021 ,
import httplib, urllib
import base64, os.path
def imageToURL( aPath ):
# read the binary data of the picture
data = open(aPath, 'rb').read()
# encoded it to base64
encodedData = base64.e

