DIGIT-ARC read-only archive · snapshot: July 23, 2026

Files in urls!!!

18 posts · originally from https://geek.digit.in/community/threads/files-in-urls.44470/

koolbluez
koolbluez Original post #1
Dec 22, 2006 at 3:32 PM
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
Pathik
Pathik #2
Dec 22, 2006 at 3:41 PM
awsome stuff man.... :)
S
Dec 22, 2006 at 5:46 PM
@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
kalpik
kalpik #4
Dec 22, 2006 at 7:05 PM
Nice info!
GeeNeeYes
Dec 22, 2006 at 7:36 PM
had to rack my brain to understand it !!
especially after my gray matter was thoroughly sozzled
__________
repping this thread
koolbluez
Dec 22, 2006 at 9:04 PM
: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
iMav #7
Dec 22, 2006 at 10:55 PM
interesting stuff ... thanx .... but i think this belongs to tuts section ....
eddie
eddie #8
Dec 23, 2006 at 1:19 AM
Neat stuff...reps and rating added :)
koolbluez
Dec 23, 2006 at 8:55 AM
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....
fun2sh
fun2sh #10
May 28, 2007 at 10:04 PM
oh my goodness. awsome technology
~Phenom~
~Phenom~ #12
May 28, 2007 at 10:26 PM
I was about to say that its old stuff then I noticed the dates.
LOL.
Apollo
Apollo #15
May 30, 2007 at 2:25 PM
Top notch stuff! Appreciate it, koolbluez!
koolbluez
koolbluez #16
May 30, 2007 at 4:36 PM
tnx 4 reviving the stuff :D
redhat
redhat #17
May 31, 2007 at 6:52 PM
Hey thats great

Thanks for the information!!!
rakeshishere
Jun 2, 2007 at 5:56 PM
Very kewl and Interesting I must say;)