Files in urls!!!

Status
Not open for further replies.

koolbluez

Šupər♂ - 超人
This maybe geek & latin to a layman… so anyone who doesn’t understand @least some html, please don’t stress ur brain in this.

A recent travel thru the LifeHacker brought me to a method to incorporate a file into a link. Using this method, we can convert and encode a binary file into a web-link which can be understood and displayed correctly by a browser. This is done using a URI called data: used in this way data:image/jpeg;base64,base_64_encodedfilecomeshere

Uses? Lots actually… for a beginning, u don’t need to upload ur pics to any other site, u can directly add them to the url(or in this matter uri) as text data! Which means data storage within a web page or blog entry! Post images or files to forums that allow url posting, sneak attachments past grumpy email filters…

A sample of my previous avatar

Original source here

Make sample data uri's here
 

sakumar79

Technomancer
@koolbluez, was that a pun or a spelling mistake?

"geek and latin to a layman" should have been "gReek and latin to a layman"

Arun
 

GeeNeeYes

powerd ↻ pramod
had to rack my brain to understand it !!
especially after my gray matter was thoroughly sozzled
__________
repping this thread
 
Last edited:
OP
koolbluez

koolbluez

Šupər♂ - 超人
:lol: pun of course, dear sakumar79!!!

And did u get it now ,GeeNeeYes?!?!?
Little tough to comprehend the first time, but examples'll show u the truth*www.foxes2.be/smilies/311.gif
 

iMav

The Devil's Advocate
interesting stuff ... thanx .... but i think this belongs to tuts section ....
 
OP
koolbluez

koolbluez

Šupər♂ - 超人
Tnx guyz for the rep...

Another use I got of the method

Check out the answer of the question itself coded into the page, instead of me uploading a different file online as solution.

I love this hack, maan....
 
Status
Not open for further replies.
Top Bottom