RE: encode an image into a .cfm inline

2002-10-01 Thread Kevin Graeme

Is this just for the purpose of seeing what fits at different widths? Is it
just for your reference or is it for visitors to the site to be able to see?

If it's just for you and just for dev., then you can use an old trick I came
up with years and years ago. Make a desktop picture with ruled areas
delineating the common screen resolutions. Then just resize your browser
window to fit within the different bounding lines on the desktop. It's an
extremely simple way to check fit.

Also, if you use Dreamweaver, there is a feature that will automatically
resize the working page window to different standard sizes and it even lets
you define your own custom sizes. It's in the lower-right of the document
editing window and the window needs to be non-maximized.

Kevin Graeme

 -Original Message-
 From: Mark W. Breneman [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 2:12 PM
 To: CF-Talk
 Subject: RE: encode an image into a .cfm inline


 I guess I did not describe this too well.  The Rule is a graphic image (a
 gif in this case) of a Ruler that helps me relate to people using lower
 resolutions.

 Mark W. Breneman
 -Macromedia Certified ColdFusion Developer
 -Network / Web Server Administrator
   Vivid Media
   [EMAIL PROTECTED]
   www.vividmedia.com
   608.270.9770

 -Original Message-
 From: Gyrus [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 1:54 PM
 To: CF-Talk
 Subject: Re: encode an image into a .cfm inline


 - Original Message -
 From: Mark W. Breneman [EMAIL PROTECTED]
  Does anyone have any ideas on if it is possible to encode an
 image into a
  cfm?  My guess it that it is impossible... but, thought I would ask.
 
  I have a graphic ruler that is included in the bottom of all of my pages
 via
  onrequestend.cfm only if a cookie vale is set to active. I develop on
  several servers and often off line as well.  I would like to have this
 ruler
  available anytime any where.  Is there a way of encoding the graphic
  inline in the .cfm file?
 
  I guess I could make a ruler with a HTML table...
 

 Not totally sure of what you're after, but the first thing that springs to
 mind is the hr / tag. But you say ruler, not rule, and
 mention a HTML
 table... Could you be more specific?

 - Gyrus

 
 - [EMAIL PROTECTED]
 work: http://www.tengai.co.uk
 play: http://www.norlonto.net
 - PGP key available
 


 
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: encode an image into a .cfm inline

2002-10-01 Thread Hugo Ahlenius

Mark,

I think what you are after would be solved by this snippet. Put this in a
template (and after testing, test with some URL vars etc) and call the
template.cfm in the IMG tag.

CFHEADER
NAME=Content-Type
VALUE=Image/GIF
CFCONTENT
TYPE=Image/GIF
DELETEFILE=no
FILE=image.gif
RESET=Yes





__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: encode an image into a .cfm inline

2002-09-30 Thread Gyrus

- Original Message -
From: Mark W. Breneman [EMAIL PROTECTED]
 Does anyone have any ideas on if it is possible to encode an image into a
 cfm?  My guess it that it is impossible... but, thought I would ask.

 I have a graphic ruler that is included in the bottom of all of my pages
via
 onrequestend.cfm only if a cookie vale is set to active. I develop on
 several servers and often off line as well.  I would like to have this
ruler
 available anytime any where.  Is there a way of encoding the graphic
 inline in the .cfm file?

 I guess I could make a ruler with a HTML table...


Not totally sure of what you're after, but the first thing that springs to
mind is the hr / tag. But you say ruler, not rule, and mention a HTML
table... Could you be more specific?

- Gyrus


- [EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
- PGP key available


__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: encode an image into a .cfm inline

2002-09-30 Thread jon hall

This what you are looking for?

img src=image.cfm

image.cfm:
cfcontent type=image/gif file=c:\imagename.gif

-- 
 jon
 mailto:[EMAIL PROTECTED]

Monday, September 30, 2002, 2:49:52 PM, you wrote:
MWB Does anyone have any ideas on if it is possible to encode an image into a
MWB cfm?  My guess it that it is impossible... but, thought I would ask.

MWB I have a graphic ruler that is included in the bottom of all of my pages via
MWB onrequestend.cfm only if a cookie vale is set to active. I develop on
MWB several servers and often off line as well.  I would like to have this ruler
MWB available anytime any where.  Is there a way of encoding the graphic
MWB inline in the .cfm file?

MWB I guess I could make a ruler with a HTML table...

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: encode an image into a .cfm inline

2002-09-30 Thread Mark W. Breneman

I guess I did not describe this too well.  The Rule is a graphic image (a
gif in this case) of a Ruler that helps me relate to people using lower
resolutions.

Mark W. Breneman
-Macromedia Certified ColdFusion Developer
-Network / Web Server Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com
  608.270.9770

-Original Message-
From: Gyrus [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 1:54 PM
To: CF-Talk
Subject: Re: encode an image into a .cfm inline


- Original Message -
From: Mark W. Breneman [EMAIL PROTECTED]
 Does anyone have any ideas on if it is possible to encode an image into a
 cfm?  My guess it that it is impossible... but, thought I would ask.

 I have a graphic ruler that is included in the bottom of all of my pages
via
 onrequestend.cfm only if a cookie vale is set to active. I develop on
 several servers and often off line as well.  I would like to have this
ruler
 available anytime any where.  Is there a way of encoding the graphic
 inline in the .cfm file?

 I guess I could make a ruler with a HTML table...


Not totally sure of what you're after, but the first thing that springs to
mind is the hr / tag. But you say ruler, not rule, and mention a HTML
table... Could you be more specific?

- Gyrus


- [EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
- PGP key available



__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: encode an image into a .cfm inline

2002-09-30 Thread Mark W. Breneman

That is close to what I already have.

Let me re-ask the question. Is there a way to not link to a graphic but
rather include the raw code of the image?

I am looking for a way to not have Ruler.gif in every folder and on every
site I work on.  (I may work on 20 - 30 sites a year.)

What I am hoping for is some thing like:
img src=
yOya JFIF   ` `  y? LEAD Technologies Inc. V1.01 yU  
4@.04LCPOKCIHT_yfTYr[HIi?jr}Qe.Y
zy.?,,WIW,,yAc
      }
!1AQaq2?'!#B?ARN?$3br,

__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: encode an image into a .cfm inline

2002-09-30 Thread Jochem van Dieten

Mark W. Breneman wrote:
 
 I guess I could make a ruler with a HTML table...

That's what I would do. Assuming your body tag has zero margin and 
padding, use:
div style=width: 50px; float: left; background-color: #f0f0f050/div
div style=width: 50px; float: left; background-color: #e0e0e0100/div
div style=width: 50px; float: left; background-color: #f0f0f0150/div
div style=width: 50px; float: left; background-color: #e0e0e0200/div
div style=width: 50px; float: left; background-color: #f0f0f0250/div
div style=width: 50px; float: left; background-color: #e0e0e0300/div
div style=width: 50px; float: left; background-color: #f0f0f0350/div
div style=width: 50px; float: left; background-color: #e0e0e0400/div
div style=width: 50px; float: left; background-color: #f0f0f0450/div
div style=width: 50px; float: left; background-color: #e0e0e0500/div
div style=width: 50px; float: left; background-color: #f0f0f0550/div
div style=width: 50px; float: left; background-color: #e0e0e0600/div
div style=width: 50px; float: left; background-color: #f0f0f0650/div
div style=width: 50px; float: left; background-color: #e0e0e0700/div
div style=width: 50px; float: left; background-color: #f0f0f0750/div
div style=width: 50px; float: left; background-color: #e0e0e0800/div
div style=width: 50px; float: left; background-color: #f0f0f0850/div
div style=width: 50px; float: left; background-color: #e0e0e0900/div
div style=width: 50px; float: left; background-color: #f0f0f0950/div
div style=width: 50px; float: left; background-color: #e0e0e01000/div

Jochem

__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: encode an image into a .cfm inline

2002-09-30 Thread Jochem van Dieten

Mark W. Breneman wrote:
 That is close to what I already have.
 
 Let me re-ask the question. Is there a way to not link to a graphic but
 rather include the raw code of the image?

Perhaps. I have never tried to make one, but if you start messing with 
cfcontent and cfheader until you send a multipart/related document with 
the image inline it might work. Something like email with inline images 
(for which Outlook uses IE to display them, so it should be possible). 
And wasn't there some Nimda that did that to make the page request a 
file that was actually piggybagged but could then be executed with local 
permissions?

It will be a hell of a job, but in theory it could work.


 What I am hoping for is some thing like:
 img src=
 yOya JFIF   ` `  y? LEAD Technologies Inc. V1.01 yU  
 4@.04LCPOKCIHT_yfTYr[HIi?jr}Qe.Y
 zy.?,,WIW,,yAc
       }
 !1AQaq2?'!#B?ARN?$3br,
 

More like (just brainstorming):

cfcontent
cfheader
cfheader
cfheader
cfheader    Boundary

Boundary
Content-type: text/HTML

html

img src=cid:22553-23452352-235452-253525;

/html

Boundary
Content-type: image/gif
Conten-ID: 22553-23452352-235452-253525
Content-Transfer-Encoding: Base64

KJGAKJGAYSGDABakBdBKadLBcHJLCLATD
hsflahflblLJKHAUIHFAKLBACHUAsdlNBy
gkk==

Boundary--

IRL, even writing a customtag to add that image to every directory and 
later removing it is a better idea.

Jochem

__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: encode an image into a .cfm inline

2002-09-30 Thread Mark W. Breneman

Yes, that is the idea.

I think I will stick with an easer method like your idea. (customtag to add
that image to every directory)


Just wanted to see if anyone had done this and if it was as easy as
something like:

img src=unBase64(KJGAKJGAYSGDABakBdBKadLBcHJLCLATD
hsflahflblLJKHAUIHFAKLBACHUAsdlNBy...)

Mark W. Breneman
-Macromedia Certified ColdFusion Developer
-Network / Web Server Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com
  608.270.9770

-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 2:37 PM
To: CF-Talk
Subject: Re: encode an image into a .cfm inline


Mark W. Breneman wrote:
 That is close to what I already have.

 Let me re-ask the question. Is there a way to not link to a graphic but
 rather include the raw code of the image?

Perhaps. I have never tried to make one, but if you start messing with
cfcontent and cfheader until you send a multipart/related document with
the image inline it might work. Something like email with inline images
(for which Outlook uses IE to display them, so it should be possible).
And wasn't there some Nimda that did that to make the page request a
file that was actually piggybagged but could then be executed with local
permissions?

It will be a hell of a job, but in theory it could work.


 What I am hoping for is some thing like:
 img src=
 yOya JFIF   ` `  y? LEAD Technologies Inc. V1.01 yU  
 4@.04LCPOKCIHT_yfTYr[HIi?jr}Qe.Y

zy.?,,WIW,,yAc
       }
 !1AQaq2?'!#B?ARN?$3br,
 

More like (just brainstorming):

cfcontent
cfheader
cfheader
cfheader
cfheader    Boundary

Boundary
Content-type: text/HTML

html
...
img src=cid:22553-23452352-235452-253525;
...
/html

Boundary
Content-type: image/gif
Conten-ID: 22553-23452352-235452-253525
Content-Transfer-Encoding: Base64

KJGAKJGAYSGDABakBdBKadLBcHJLCLATD
hsflahflblLJKHAUIHFAKLBACHUAsdlNBy
gkk==

Boundary--

IRL, even writing a customtag to add that image to every directory and
later removing it is a better idea.

Jochem


__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: encode an image into a .cfm inline

2002-09-30 Thread jon hall

You can use javascript url in the img src and generate an XBM image.

http://david.blackledge.com/XBMDrawLibrary.html

-- 
 jon
 mailto:[EMAIL PROTECTED]

Monday, September 30, 2002, 3:24:37 PM, you wrote:
MWB That is close to what I already have.

MWB Let me re-ask the question. Is there a way to not link to a graphic but
MWB rather include the raw code of the image?

MWB I am looking for a way to not have Ruler.gif in every folder and on every
MWB site I work on.  (I may work on 20 - 30 sites a year.)

__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: encode an image into a .cfm inline

2002-09-30 Thread Samuel R. Neff

Mark,

As a previous poster said, you can send a Multipart-MIME message that
includes the HTML page and the image, in Base64 encoding.  I don't know if
this works with all browsers, but I'm pretty sure it works with IE.  I've
used it for sending Web Archives (MS term for Multipart-MIME) documents to
MS Word.

I have a presentation on MS Word which includes a good amount of info on
generating Multipart-MIME messages, including over 2,000 lines of example
code and a generic Multipart-MIME CFC for constructing the messages.  It's
CFMX, but can be easily adopted to CF5 as custom tags.  If you're
interested, send me a private e-mail (and anyone else that's interested, do
the same).  [EMAIL PROTECTED]

Thanks,

Sam


Samuel R. Neff
Senior Software Engineer
B-Line Express
Advanced ColdFusion 5.0 Certified
Team Macromedia Volunteer for ColdFusion



Date: Mon, 30 Sep 2002 13:49:52 -0500
From: Mark W. Breneman [EMAIL PROTECTED]
Subject: encode an image into a .cfm inline
Message-ID: [EMAIL PROTECTED]

Does anyone have any ideas on if it is possible to encode an image into a
cfm?  My guess it that it is impossible... but, thought I would ask.

(snip)

Mark W. Breneman

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists