We have the employee photos stored in an oracle DB (blob format).  I'm reading 
the record getting the photo and then using the image tags to store or display 
them.  The problem is that some of the photos look like they are getting cut 
off.  When I look at the photo it is only the person's head or down to their 
eyes and the rest of the image does come out.  I check the photo a different 
way using some DB tools to see if the picture is corupt but the photo checks 
out OK that way.  Photos that are less than 10 KB come out fine.  When I have a 
photo that is 60 KB then the photo gets cropped off.  Is there a limit in size 
that I'm hitting with these image tags.  Below is a sample of a test I set up.  
I wish I could post the photo so you get an idea of what it looks like.

<cfinvoke component="/hr/hr_CFCs/HR_employee" method="EmployeePhotoSelect" 
returnvariable="getEmployeePhoto">
<cfinvokeargument name="a_empNo" value="5773"> </cfinvoke>
        <cfif getEmployeePhoto.RecordCount EQ 0>
                No photo found
    <cfelse>
        <cfset myImage=imageNew(#getEmployeePhoto.photo#)>  
        <cfset ImageScaleToFit(myImage,100,"")>  
                <cfimage source="#myImage#" action="write" 
destination="\\olympusnew\c$\inetpub\wwwroot\hr\phone\photo\employee_thumbnail_5773.jpg"
 overwrite="yes">
                <!---cfoutput>
           <cfimage source="#getEmployeePhoto.photo#" action="write" 
destination="\\olympusnew\c$\inetpub\wwwroot\hr\phone\photo\employee_thumbnail_5773.jpg"
 overwrite="true"> 
           <cfimage 
source="\\olympusnew\c$\inetpub\wwwroot\hr\phone\photo\employee_thumbnail_5773.jpg"
 action="info" structname="imageInfo">
           <cfdump var="#imageInfo#"> 
        </cfoutput --->
        </cfif> 

thanks,

BJ 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309163
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to