Sponsorised links
This year
Comment encoder des données dans une URL
Je m’explique. Vous pouvez créez de toute pièce une URL contenant un fichier, qu’il soit image, ascii, texte ou encore xml. Celle-ci se forme de cette façon pour une image par exemple: data:image/jpeg;base64,jpeg_encodée_en_base64Quoiqu’il en soit, voici comment faire ! Tout d’abord, il faut convertir votre fichier en base64. Moi je vais convertir une image. Il a des tas de sites qui fond ça mais celui là est sympa: http://www.sveinbjorn.org/dataurlmaker Plus votre fichier est gros, plus ces lignes de codées seront longues. Il suffit ensuite de replacer cette chaine dans les tags cité ci dessus: <img src="data:image/jpeg;base64,ICI_LE_CODE_BASE64"> et le tour est joué !
2008
Sponsorised links
2007
Sveinbjorn Thordarson's Website - Using Data URLs Effectively with Cascading Style Sheets
Data URLs are a clever way of embedding images in HTML. Instead of linking to an image stored locally on the server, the image is provided within the URL itself as a base64-encoded string of data preceded by a mime-type. In this article I discuss how Data URLs can be effectively used to optimize website loading times and performance.
Sveinbjorn Thordarson's Website - DataURLMaker
This page contains a CGI program called the "Data URL Image Generator". If you select an image file and submit the form below, you get a Data URL for the image, as per the RFC specification for Data URLs.
2006
1
(14 marks)
