2011-09-28 52 views
1

我需要從以下頁面獲得的圖像URL圖像URL:獲得來自化身

http://social.msdn.microsoft.com/Forums/en-US/windowsdeveloperpreviewgeneral/thread/428510f3-ce59-4c97-9981-75fdc3291d97

圖片來源都是Base64字符串(圖像的字節)

是否有可能得到它像這樣的代碼:

<img src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAAsACIDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9XdL0Wx+xWRWxtWBtrUsfs8XB8pP9j3714X8ZP2nf2avgBH/xdT4k+BfCt1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uKK9Mu3g+13X+g2X/HxP/wAsW/56N/00orRcVVrJfVqey6y/u+fn/Wlvg2oXfuvfv/h/z/q2v//Z" alt=""> 

我發現usercard.js文件有以下的代碼行:

... IMG SRC = 「數據:圖像/ JPG; BASE64,$ {} AvatarData」 ......

,但我找不到在哪裏AvatarData檢索。

回答

2

沒有URL。該base64數據是圖像文件的實際內容。

+0

是的,但內容是從某個文件(url)中檢索的,對嗎?它必須是一些js函數,從某個url獲取內容(基於用戶id我猜)。 – dede

+0

@dede不,看起來不像:http://en.wikipedia.org/wiki/Data_URI_scheme#Examples – fazo