tracker issue : CF-3203939

select a category, or use search below
(searches all categories and all time range)
Title:

cfdocument and images

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): David Jacobson / David Jacobson (David Jacobson)

Created: 06/01/2012

Components: Document Management

Versions: 9.0.1

Failure Type: Cosmetic Issue

Found In Build/Fixed In Build: 9.0.1 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Win 2008 Server

Vote Count: 0

Problem Description: When using cfdocument type='pdf', images don't properly appear.

Steps to Reproduce:  I have tried several fixes to get this working.  This report was used last year on a CF8 box and worked as expected, since our hosting has been upgraded to a CF9 server.

<img src="http://www.fcfrederick.com/_admin/logo_admin.jpg" width="650"> height="125" />
<img src="logo_admin.jpg" width="650" height="125" /> 
<img src="file:///#ExpandPath('/_admin/logo_admin.jpg')#" width="650" height="125" />

<cfdocument format="pdf" localUrl="yes">

Also used the following UDF and it stil doesn't work.

<cffunction name="localUrl" >  
	<cfargument name="file" />  
		<cfset var fpath = ExpandPath(file)>  
        <cfset var f="">  
        <cfset f = createObject("java", "java.io.File")>  
        <cfset f.init(fpath)>  
        <cfreturn f.toUrl().toString()>
</cffunction>

<img src="#localUrl('_admin/logo_admin.jpg')#" width="650" height="125" />

Actual Result: Image blank with red x or No image at all

Expected Result: Display image

Any Workarounds: N/A

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3203939

External Customer Info:
External Company:  
External Customer Name: MusicManMD
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments: