CodingEmbedded image test...

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Peter (BOUGHTONP)  
 To:  ALL
36529.1 
I just found out you can embed images as base64 in HTML.

HTML code:
<img alt="a cube" src="data:image/png;base64,iVBORw....nTsAAAAASUVORK5CYII="/>


a cube


/me files under "Cool things I'll probably never actually need".


I guess if you need to generate lots of small temporary uncached files it could be useful?
0/0
 Reply   Quote More 

 From:  Monsoir (PILOTDAN)  
 To:  Peter (BOUGHTONP)     
36529.2 In reply to 36529.1 
That's quite cool
Embedded Image
0/0
 Reply   Quote More 

 From:  Monsoir (PILOTDAN)  
 To:  Peter (BOUGHTONP)     
36529.3 In reply to 36529.1 

Doesn't seem too keen on big images here. Dunno if that's beehive or IE, but if I go to the image properties it doesn't display all the code (Hence why the image isn't complete).

 

Still very interesting though - could be used where you want to distribute a single HTML doc with images or something. Actually, I can think of a few uses in a restricted environment. It wouldn't even be THAT untidy if you used CSS.

0/0
 Reply   Quote More 

 From:  Matt  
 To:  Peter (BOUGHTONP)     
36529.4 In reply to 36529.1 
S'clever innit.

You can use your example in CSS, with the background property, which could possibly make for some really hard to save images.

code:
background-image: url('data:image/png;base64,iVBORw....nTsAAAAASUVORK5CYII=');


You can do put content other than images in there as well, including base64 encoded CSS and Javascript but browser support as usual is sketchy. The biggest downside is support for this was only added to IE in 8.0 and then it only permits them up to 32K in size (possibly why Dan is having problems with large images), due to security concerns over malicious content. IE 7 and older simply don't support it.

doohicky

0/0
 Reply   Quote More 

 From:  Mal (BAD)  
 To:  Peter (BOUGHTONP)     
36529.5 In reply to 36529.1 

Won't that just kill your bandwidth? A image converted to text is always going to be twice the size.

 

I'm struggling to see the point :/

 

EDIT: It's Base64 though innit so not twice the size. My bad. Still bigger though.

 

EDIT2: I suppose it might be useful for HTML emails - no need to worry about maintaining image attachments etc. Not that that's especially difficult.

back in a flash! and as dangerous as ever...
0/0
 Reply   Quote More 

 From:  koswix  
 To:  Matt     
36529.6 In reply to 36529.4 
I'm amazed the blackberry browseer supports it! If verry slowly.


The Seventh Posture of Burton's translation of The Perfumed Garden is an unusual position not described in other classical sex manuals. The receiving partner lies on their side. The penetrating partner faces the receiver, straddling the receiver's lower leg, and lifts the receiver's upper leg on either side of the body onto the crook of penetrating partner's elbow or onto the shoulder. While some references describe this position as being "for acrobats and not to be taken seriously," others have found it very comfortable, especially during pregnancy.
0/0
 Reply   Quote More 

 From:  Mouse  
 To:  ALL
36529.7 
Just out of interest would this make supporting cross email clients easier? Cos they're a bit of a nightmare to get looking correct on everyone's clients. No standardisation and that.

Which of the following would you most prefer?
A: a puppy,
B: a pretty flower from your sweety, or
C: a large properly formatted data file?
0/0
 Reply   Quote More 

 From:  koswix  
 To:  Mouse     
36529.8 In reply to 36529.7 
Or you could just shove your Google powered Kroncong spam up your /BUM/ :@


The Seventh Posture of Burton's translation of The Perfumed Garden is an unusual position not described in other classical sex manuals. The receiving partner lies on their side. The penetrating partner faces the receiver, straddling the receiver's lower leg, and lifts the receiver's upper leg on either side of the body onto the crook of penetrating partner's elbow or onto the shoulder. While some references describe this position as being "for acrobats and not to be taken seriously," others have found it very comfortable, especially during pregnancy.
0/0
 Reply   Quote More 

 From:  Mouse  
 To:  koswix     
36529.9 In reply to 36529.8 

:'D

 

<adds Kos's email 5 more times to spam list>


Which of the following would you most prefer?
A: a puppy,
B: a pretty flower from your sweety, or
C: a large properly formatted data file?
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Monsoir (PILOTDAN)     
36529.10 In reply to 36529.3 
Worked fine in Chrome, so it must be IE as Matt suggests.
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Mal (BAD)     
36529.11 In reply to 36529.5 
What about using JS to generate a smooth gradient background image on the client?
Can't do that easily in one request normally (would need to know window size), but client-side wouldn't be too tricky - and it would likely be less data than the equivalent image too.
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Mouse     
36529.12 In reply to 36529.7 
Not really - images aren't really the main issue with emails, it's support for other things like widths, margins, and so on.
0/0
 Reply   Quote More 

 From:  koswix  
 To:  Mouse     
36529.13 In reply to 36529.9 

Not sure I'm on yer spam list tbh, which is odd. Sure I used to be.

 


Also I am running out of obscure string instruments to acuse you of selling.



The Seventh Posture of Burton's translation of The Perfumed Garden is an unusual position not described in other classical sex manuals. The receiving partner lies on their side. The penetrating partner faces the receiver, straddling the receiver's lower leg, and lifts the receiver's upper leg on either side of the body onto the crook of penetrating partner's elbow or onto the shoulder. While some references describe this position as being "for acrobats and not to be taken seriously," others have found it very comfortable, especially during pregnancy.
0/0
 Reply   Quote More 

 From:  Mouse  
 To:  koswix     
36529.14 In reply to 36529.13 
I haven't sent one for a few weeks :$

Which of the following would you most prefer?
A: a puppy,
B: a pretty flower from your sweety, or
C: a large properly formatted data file?
0/0
 Reply   Quote More 

 From:  koswix  
 To:  Mouse     
36529.15 In reply to 36529.14 
The Thought Police Google won't be happy with you. And those BordonĂșas won't sell themselves, you know.


The Seventh Posture of Burton's translation of The Perfumed Garden is an unusual position not described in other classical sex manuals. The receiving partner lies on their side. The penetrating partner faces the receiver, straddling the receiver's lower leg, and lifts the receiver's upper leg on either side of the body onto the crook of penetrating partner's elbow or onto the shoulder. While some references describe this position as being "for acrobats and not to be taken seriously," others have found it very comfortable, especially during pregnancy.
0/0
 Reply   Quote More 

 From:  Mal (BAD)  
 To:  Peter (BOUGHTONP)     
36529.16 In reply to 36529.11 
Fair point - hadn't thought of that. I suppose it allows you to offload any sort of image processing/generation to the client - albeit at the cost of having to re-run it on every refresh? Might be painful for mobile users with slow js processing though!
back in a flash! and as dangerous as ever...
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Mal (BAD)     
36529.17 In reply to 36529.16 
Well refreshing is becoming a rarer event with all this asynchronous loading, so that's less of a problem.
Though it would be good if browser caches allowed manual insert/retrieval using JS - easier than faffing with cache control headers!

Slow JS processing for mobile devices could be an issue, but with 800MHz CPUs just around the corner, it shouldn't be much of an issue for long?
0/0
 Reply   Quote More 

 From:  Ally  
 To:  Peter (BOUGHTONP)     
36529.18 In reply to 36529.11 
You sort of could make a gradient- use SVG for Firefox and Safari, and a CSS filter for IE. The IE part isn't valid, but then this method doesn't work it in it at all...
0/0
 Reply   Quote More 

Reply to All    
 

1–18

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats