Cfimage

Dear all,
In ColdFusion 8, there are many new features to manipulate
image.
My question: what is the fastest method to load many images
to your browser?
1. taking the image from database and use imagenew
<cfset myImage=ImageNew("#MyQuery.Photo#")>
<cfimage action="writeToBrowser" source="#myImage#">
or
2. loading the image from file (<image src="logo.gif">)
or
3. Any other methods?
Thanks in advance
Keiko

Thanks Tiono for your reply. Reading from database can be
cached. But I am not so sure about writing to browser. Maybe I
should try to clear temporary browser files, load 1000 images and
time the loading process.
Any other comments will be very much appreciated.
Keiko

Similar Messages

  • After upgrade to CF9, CFIMAGE "Unable to create temporary file" error

    We recently upgraded from CF8 to CF9 Enterprise.  I'm getting an "Unable to create temporary file" error on
    my CFIMAGE resize calls.  We use sandbox security.  I assume I need to grant write access to whatever folder CF uses for temp files, but which folder is it?   The same code (and sandbox settings) ran fine in CF8....
    Note, if I attempt to add C:\JRun4\servers\cfusion\SERVER-INF\temp to the sandbox for this particular app, CF crashes on all requests across all apps on the server with a:
    Security: The requested template has been denied access to C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfclasses\cfapp2ecfc1510154633.c lass.
    The following is the internal exception message: access denied (java.io.FilePermission C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfclasses\cfapp2ecfc1510154633.c lass read)
    ColdFusion cannot determine the line of the template that caused this error. This is often caused by an error in the exception handling subsystem.
    I need to restart CF to get everything working again.

    Another update.   Had a problem with a sandboxed CF9 site doing a simple CFIMAGE READ to a memory variable.  Got an "Unable to create temporary file" error.
    Inserted the following code in the file upload page:
    <cfscript>
    writeoutput("Temp Dir : " & createobject("java","java.lang.System").getProperty("java.io.tmpdir") );
    </cfscript>
    ... and it reveals the temp directory as C:\WINDOWS\TEMP.  Added that to the sandbox, and the CFIMAGE READ is working properly now.
    Note this seems inconsistent with CFIMAGE RESIZE behavior which appears to use the CF GetTempDirectory() value, which in my case is C:\JRun4\servers\cfusion\SERVER-INF\temp\cfusion-war-tmp\
    For reference, see the section "Sandbox Considerations" at this link:
    http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fc8 .html#WSc3ff6d0ea77859461172e0811cbf364104-7fcc

  • CFImage - Out of memory

    Seeking help and advice ...
    My project has a high traffic load where image uploading is a
    key feature for our users. We process images that the user has
    either resized already, or that came directly off a camera in the
    camera's image format and size.
    I have been running into a issue where I receive the
    following error message:
    Java heap space null
    and through CF Fussion Reactor have found in logs:
    # An unexpected error has been detected by Java Runtime
    Environment:
    # java.lang.OutOfMemoryError: requested 23970816 bytes for
    jbyte in C:\JAVA\jdk6_04\hotspot\src\share\vm\prims\jni.cpp. Out of
    swap space?
    # Internal Error (allocation.inline.hpp:42), pid=7284,
    tid=5880
    # Error: jbyte in
    C:\JAVA\jdk6_04\hotspot\src\share\vm\prims\jni.cpp.
    This occurs at ramdom intervals, the size of the image does
    not seem matter, and occasionaly the server will restart due to
    this error.
    In trying to narrow down the source of this error I have used
    <CFLOG statements all around the steps I implement when
    uploading an image and further in resizing the image.
    Summary as follows:
    1. User input FORM for image file upload
    2. Process File via <cffile upload -> to a TEMP dir on
    the server
    3. perform validatation of file type (JPE and JPEG are seen
    as OCTETSTREAM **another issue but this step allows us to accept
    OCTETSTREAM mimetypes then check the file extension before
    proceeding)
    4. If FILE passes then COPY the file to desired location
    <CFFILE *this step also updates the file name to remove spaces
    and special characters, as well as creates a unique name (as the
    copy or move action does not seem to allow for 'MAKEUNIQUE')*
    5. Update the database with the final filename / location
    6. Create object for resize CFC to Check the Image size
    (call imageresize.cfc)
    7. the image CFC performs a <CFIMAGE to load the image
    into the cfimage object
    8. Check the height and width to determine if resize as
    needed
    9. IF resize is true call ImageScaleToFit
    10. Re-Write the image file <cfimage action="write" to
    overwrite the original file.
    11. DONE - show user a confirm page with resized image.
    Each step above has a custom <CFLOG for START step ????
    -> <CFLOG for END step ???? (also meaning SUCCESS of that
    Step)
    From the log messages I am seeing that the process starts
    into step 7. and fails with the above messages. the END STEP log is
    not reached. Loading the image into the CFIMAGE object fails.
    The size of the image does NOT appear to matter, the server
    simply gets bogged down, probably from a high number of other
    requests running and other memory loads. Some images will be
    processed, others fail, and every 12 hours or so, the server will
    crash with no explaination other than the log messages above.
    Can anyone adivse me on how to better handle this process?
    Manage memory? dump memory? manage threads? Create a Loop to retry
    the resize process?
    The server I am using is a new WIN2008 server, CF8 (latest
    hotfix applied), 4 Gig of RAM. The java Heap is set to 512MB MIN -
    1300MB MAX. MaxPermsize=192m
    Thank You

    looks like a memory leak
    http://www.performanceengineer.com/blog/java-memory-leaks/
    http://docs.sun.com/app/docs/doc/819-4673/gezax?l=fr&a=view
    Error Log for Web Server or Application Server
    Exception in thread "service-j2ee"
    java.lang.OutOfMemoryError:
    requested 53515 bytes for jbyte in
    /BUILD_AREA/jdk1.5.0_10/hotspot/src/share/vm/prims/jni.cpp.
    Out of swap space?
    Description:
    The native heap allocation failed and the native heap may be
    close to exhaustion.
    Cause:
    A native code leak, for example the C or C++ code,
    continuously requires memory without releasing it to the operating
    system. There could be indirect causes like an insufficient amount
    of swap space or another process that is consuming all memory or
    leaking it.
    Solution:
    For further diagnosis of a native code memory leak, see the
    Java 5.0 Troubleshooting and Disgnostic Guide at
    http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf.
    In the section “Diagnosing Leaks in Native Code.” See
    the information about tools for different operating systems. The
    tools include mdb and dbx (runtime trace) for Solaris 9 U3 or
    later, mtrace , libnjamd for Linux, and windb or userdump for
    Windows."
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=143&threadid= 1305386&enterthread=y

  • Question regarding cfimage and its' hotfix

    Ok, I've browsed through numerous threads regarding cfimage
    issues and the various hotfixes.
    Seeing as I am not the administrator of my server's copy of
    ColdFusion, I wanted to see if I could verify that the latest
    hotfix was installed. I had seen someone post a version number in a
    thread from months ago, but I do not have the same version number
    and do not know how valid that build would be as of now anyway. The
    version number that I get when retrieving the server info is
    8,0,1,196946. Is this consistent with the latest cfimage hotfix
    version?
    On a side note, if anyone has a moment and can test
    something:
    I'm having trouble when resizing/writing certain jpgs (I've
    tried various methods at this point, including cfimage of course).
    http://img299.imageshack.us/img299/2839/imageqp8.jpg
    is an example of an image that is giving me problems (hanging while
    processing, leading to a timeout). If someone who is certain they
    have the hotfix could try this and verify that it works for them,
    it would help narrow down the list of potential issues for me.
    Thanks for any help.

    > I wanted to see if I could verify that the latest hotfix
    was installed
    I could be wrong, but I think you will need administrative
    access to determine the hotfix level. I believe
    CF8
    Cummulative HF1 includes some image related fixes. However,
    there were two image hotfixes. Unfortunately both were released
    with the same number, but on two different dates. AFAIK, the only
    way to tell if the later image hotfix is installed is to check the
    file date. It should be
    08/15/2008
    I ran a few tests on the image and had no problems with it:
    CF: 8,0,1,195765
    Image Hotfix (hf801-71557.zip - 8/15/2008) installed
    O/S: XP
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403823

  • CFIMAGE not working when there is a . in the file path?

    I’m trying to use CFIMAGE for the first time and running into an issue. I am guess it is because my path has a period in it but I am not sure and I am not sure how to get around it if that is indeed the problem.
    I’m using ExpandPath to get the directory path but I have tried it other way with the same result. The path is
    C:\Websites\mywebsite.com\www\images
    I’m just trying to take a file in the C:\Websites\mywebsite.com\www\images\temp directory and resize it then rename it to the memberid with 300 on the end and save it to this directory C:\Websites\mywebsite.com\www\images\members
            <cfimage
            action = "resize"
            height = ""
            source = "#ExpandPath("..\images")#\temp\#TempFileName#"
            width = "300"
            optional
            destination = "#ExpandPath("..\images")#\members\"
            name = "#ARGUMENTS.MemberID#300"
            format = "jpg"
            overwrite = "yes">
    I keep getting the folowing error.
    The com\www\images\members\ image format is not supported on this operating system.
    Any ideas?

    was the fact that I ahd both destination and name being used
    at the same time.
    Using both "destination" and "name" works fine for me on windows. Though as I said, it is usually more common to use one or the other (not both).
    all I did was copy and paste
    from Adobe's example.
    Given the fact that your code contained the word "optional", you may have inadvertently copied a usage/syntax description rather an actual code example. Most of the descriptions contain the word "optional" to separate the mandatory and optional attributes. They are just descriptions not working code. Look for the actual code examples further down in the page (usually in a mono-font like courier).

  • "X resolution" error when using CFIMAGE

    I've built an uploader for my new photo gallery, and it's pretty basic.  I can either upload using the new <cffileupload> box, or I can FTP files to an "upload" directory.  Since the entire site is local still, I've just been copying the files I want to add to the database to the "upload" directory, then running my script.  So far I've created 49 albums and added just over 3,400 pics.
    That is, until this latest round.
    I have some pics I took on a cruise a couple of years ago.  There are just fewer than 400 of them.  When I copy the files to my upload folder, pick my album, then click "Submit", get the following errors from <cfcatch>:
    cfcatch.type = Application
    cfcatch.message = X Resolution
    cfcatch.detail = X Resolution
    That's ALL I get.
    On the upload form, there's a <cfif> statement that copies the original images to a "/fullsize/" directory before processing if they're 1280px wide or less.  Otherwise it resizes them using <cfimage>.  In this case, the files are all 1280 wide, so the next <cfimage> tag is the one that makes the default viewing pic.
    Here's the code I'm using:
    <cfdirectory action="list" directory="#request.basepath#/manage/upload" name="uploads" sort="name ASC" mode="777">
    <cfsetting requesttimeout="#createtimespan(0,1,0,0)#">
    <cftry>
    <cfloop query="uploads">
    <!--- calculate portrait or landscape --->
    <cfimage source="#request.basepath#/manage/upload/#uploads.name#" name="thisimage">
    <cfif thisimage.height gt thisimage.width>
    <cfset imgheight="800">
    <cfset imgwidth="">
    <cfset thumbheight="180">
    <cfset thumbwidth="">
    <cfelse>
    <cfset imgheight="">
    <cfset imgwidth="800">
    <cfset thumbheight="">
    <cfset thumbwidth="180">
    </cfif>
    <!--- add pics to database --->
    <cfif IsNull(ImageGetEXIFTag(thisimage,"Date/Time Original"))>
    <cfset pictimestamp = uploads.dateLastModified>
    <cfelse>
    <cfset pictimestamp = replace(listfirst(ImageGetEXIFTag(thisimage,"Date/Time Original")," "),":","-","ALL") & " " & listlast(ImageGetEXIFTag(thisimage,"Date/Time Original")," ")>
    </cfif>
    <!--- create full size file --->
    <cfif thisimage.width gt 1280>
    <cfimage
        action="resize"
        width="1280"
        height=""
        source="#request.basepath#/manage/upload/#uploads.name#"
        destination="#request.basepath#/gallery/fullsize/#uploads.name#">
    <cfelse>
    <cffile
        action="copy"
        source="#request.basepath#/manage/upload/#uploads.name#"
        destination="#request.basepath#/gallery/fullsize/#uploads.name#"
        mode="777">
    </cfif>
    <!--- create main photo --->
    <cfimage
        action="resize"
        width="#imgwidth#"
        height="#imgheight#"
        source="#request.basepath#/manage/upload/#uploads.name#"
        destination="#request.basepath#/gallery/#uploads.name#">
    <!--- create thumbnail --->
    <cfimage
        action="resize"
        width="#thumbwidth#"
        height="#thumbheight#"
        source="#request.basepath#/manage/upload/#uploads.name#"
        destination="#request.basepath#/gallery/thumbnails/#uploads.name#">
    <cfquery name="addpicstodb" datasource="#request.dsn#" timeout="#createtimespan(0,1,0,0)#">
    INSERT INTO photos
                    ( pic_album
                    , pic_file
                    , pic_date
            VALUES (  <cfqueryparam value="#FORM.upload_album#" cfsqltype="cf_sql_numeric">
                    , <cfqueryparam value="#uploads.name#" cfsqltype="cf_sql_varchar">
                    , <cfqueryparam value="#pictimestamp#" cfsqltype="cf_sql_timestamp">
    </cfquery>   
    <!--- clean upload directory --->
    <cffile 
        action="delete"
        file="#request.basepath#/manage/upload/#uploads.name#">
    </cfloop>
    <cfcatch type="any">
    <cfoutput>#cfcatch.type# - #cfcatch.message# - #cfcatch.detail# - #cfcatch.ExtendedInfo#</cfoutput>
    </cfcatch>
    </cftry>
    Keep in mind this has worked for over 3,400 pics, so something perhaps is different about this set of pics I'm uploading.
    The pics are all around 600KB in size (jpegs), and are 1280x853px in resolution.  I've even batch-renamed them with a unique file prefix to avoid naming conflicts.

    Solved, sort of.
    I had used the Nautilus rotate/resize extension on a bunch of pics in this set where the landscape/portrait properties were somehow not retained.  Apparently that messes things up with <cfimage> because when I deleted the first image in the set (which was portrait), the upload went fine until I got to the next portrait file.  I opened it in image viewer, rotated it, then rotated it back and saved it, and then it was fine.
    Looks like I have to do this with all the ones I rotated. :/
    But at least I'm able to upload again.

  • Generate image with CFIMAGE - but need to use img tag to serve the content

    I create a new image with cfimage, that already works without
    any problems.
    But instead of using the action="writetobrowser" I need to be
    able to use the script inside a img tag:
    Example: <img
    src="myscript.cfm?somedata=iwanttheimagetocreate>
    I found one webpage that deals with that problem (
    http://www.webdevelopernews.com/2007/09/14/serving-up-cfimages-via-image-tags/)
    but the image served to the browser, when using the code below, is
    of a very low quality and another point is that you can't serve
    .gif's to the browser.
    <cfcontent type="image/jpg"
    variable="#ImageGetBlob(backgroundimage)#">
    Any suggestions/solutions?
    Thanks,
    Phil

    In that entry Raymond mentions:
    "The WriteToBrowser action actually generates HTML that points
    to a ‘magic’ URL to serve the image.". ie <img
    src="/CFFileServlet/_cf_image/_cfimg-12345036853711072.PNG" alt=""
    />
    Perhaps you could create a function that captures the
    generated html by using <cfsavecontent>.
    <cfsavecontent variable="imageTagHTML">
    <cfimage action="writeToBrower" ..>
    </cfsavecontent>
    Then uses a regular expression to extract and return the url
    portion only. ie
    "/CFFileServlet/_cf_image/_cfimg-12345036853711072.PNG"
    <cfset ExtractedURLHere = SomeFunction(arguments...)>
    <cfoutput><img
    src="#ExtractedURLHere#"></cfoutput>
    Though you could also use the entire html string directly
    <cfoutput>#imageTagHTML#</cfoutput>

  • CFimage patch 71557, is it in a Hotfix too?

    I am trying to determine if our server has the CFImage patch 71557.  I've been told we installed Cumulative Hotfix 4, which should have taken care of it, but I can't find any documentation to support that.
    Here's a link to the CFImage patch:  http://kb2.adobe.com/cps/403/kb403411.html
    Here's what our server information is showing about having hot fixes installed:
    f:/ColdFusion8/runtime/../lib/updates/hf801-71471.jar;   f:/ColdFusion8/runtime/../lib/updates/hf801-76563.jar;   f:/ColdFusion8/runtime/../lib/updates/chf8010004.jar;
    If anyone can shed some light on this I would greatly appreciate it.  I'm seeing some image issues that appear to be closer related to the CFImage patch 71557, but I can't confirm we have the patch in place as all we have are hotfixes that I can see.
    Thank you!

    I am trying to determine if our server has the CFImage patch 71557.  I've been told we installed Cumulative Hotfix 4, which should have taken care of it, but I can't find any documentation to support that.
    Here's a link to the CFImage patch:  http://kb2.adobe.com/cps/403/kb403411.html
    Here's what our server information is showing about having hot fixes installed:
    f:/ColdFusion8/runtime/../lib/updates/hf801-71471.jar;   f:/ColdFusion8/runtime/../lib/updates/hf801-76563.jar;   f:/ColdFusion8/runtime/../lib/updates/chf8010004.jar;
    If anyone can shed some light on this I would greatly appreciate it.  I'm seeing some image issues that appear to be closer related to the CFImage patch 71557, but I can't confirm we have the patch in place as all we have are hotfixes that I can see.
    Thank you!

  • CFIMAGE not working with certain JPG

    Hi all,
    Got an emergency here, hope anyone can help.
    I find that more and more people are encountering problems using CFIMAGE -- no error is thrown when reading/saving certain jpg images, but the result image is just blank and gray.
    The code is just simple:
    <CFSET IM=ImageRead("C:\DSCN1570.JPG")>
    <cfset ImageResize(IM,300,200,"highPerformance")>
    <cfset ImageWrite(IM,"C:\DSCN1570-2.JPG")>
    or even just:
    <CFSET IM=ImageRead("C:\DSCN1570.JPG")>
    <cfset ImageWrite(IM,"C:\DSCN1570-2.JPG")>
    This happens after applying the latest hotfix for 8.0.1 (Cumulative Hotfix 2 for CF 8.0.1). If this patch is not installed the processing works.
    Attached is an offending file. The code works if i replace the file with another jpg.
    Any help is much appreciated. I'm running CF 8,0,1,195765 devt edition on Windows XP and my java version is 1.6.0_04. My metadata-extractor is 2.3.1.
    Thanks,
    Andrew

    Yeah, sorry: missed the bit - that BKBK pointed out - about you saying you did some testing.  To be honest, I would never release code into production without load-testing it first.  Especially something that's perhaps already red-flagged as being a risk.  Of course there was no real reason for you to think that the previously fixed issue had been regressed.  So not - perhaps - a red flag.  maybe just an amber one.
    I don't believe load testing is a "nice to have", it's essential.  In the past I just slapped my code into production after a bit of a click round to make sure it all seemed to work.  Then we released some code which worked fine whilst only one person was accessing it, but had some severe logic flaws in it which made it fail - in a data-destroying sort of way - which caused us an awful lot of issues with the client (which in turn got me shouted @ by the boss), not to mention wasted time fixing everything.
    That lead me to investigate whether we could have found that sort of thing had we load-tested: yes.  Easily.  Lesson learned.  It also turned up a few other things we didn't notice which were easy tweaks which improved the performance of the app, and made the client happy again.
    But anyway, that's just something to think about for future reference, I guess.  I fully understand what you mean about time constraints often preventing one from taking the perfect foolproof approach to things: we've all done that. Just sux you got caught out by it.
    As for bringing it to Adobe's attention... go here: http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html.
    It'd help if you could contrive a stand-alone test rig that can be made to fail under load.
    Adam

  • CFImage EXIF Retrieval Error

    Need to utilize ImageGetExifMetaData to retrieve jpg
    orientation and size information to determine if modifications need
    to be made to photo. The tag is very inconsistent returning exif
    data. 80% of the time throws the following error:
    Exception occured in JPG processing. segment size would
    extend beyond file stream length
    Following is code along with link to sample photo:
    <cfimage action="read" source="
    http://www.thefloorteam.com/rp/wd/56k/1197/1197_5067792_14-Apr-08_10000.jpg"
    name="img">
    <cfset info=ImageGetExifMetaData(img)>
    <cfdump var="#info#"></cfdump>
    Have seen several posts on blogs and other sites that this is
    fairly common error. Has anyone been able to work around it as size
    of file, remote location of file, etc. seems to make little
    difference other than if I run localhost with file on local drive
    have not been able to create error.
    Thanks in advance.

    Hi Kumar,
    SAP keeps retrieval FI data in TXW_S_BKPF (Source table: BKPF) and TXW_S_BSEG (Source table: BSEG).
    The retrieval tables are named using the first four characters from the name of the source table (the table in which the data resided before archiving) with the prefix TXW_S_.
    Please check in above two tables for the retrieved data.
    Please check the below link for with the same information.
    http://help.sap.com/saphelp_45b/helpdata/en/3b/162be5c35511d1801b00c04fada2a1/content.htm
    Hope this helps.
    Regards,
    Sujit.

  • Cfimage variable

    I am trying to get info for my uploaded variable. Live docs tells me that source can be
    source = "absolute pathname|pathname relative to the web root|URL|#cfimage variable#"
    How do I set
    my uploaded file to  a #cfimage variable#?
    Below is what I have but does not work.
    <cffile action="upload" nameconflict="overwrite" destination="#ExpandPath("./images")#"
    filefield="FORM.uploadImage" result="myFile" />
    <cfimage action = "info" source = "#myFile#" structname = "myFile3"

    Hulfy, did you get this working? What (I think) cfsearching is saying (and from what I understand you need to do) simply name your variable to the upload parameter as such:
    <cffile destination="#ExpandPath("./images")#" action="upload" nameconflict="overwrite" filefield="#uploadimage#">
    <cfset myFile3 = "#myFile.serverFile#">
    [ perform any actions such as resizing etc ]
    <img src="images/#myFile3#">

  • CFimage erro

    Hello,
    I just update from CF7 to CF9 standard version and start using cfimage.
    <cfset tempPath = "c:/images/#cffile.serverFile#" />
    <cfset uploadedImage = "" />
    <cfimage action="read" source="#tempPath#" name="uploadedImage"/>
    <cfset headingWidth = uploadedImage.GetWidth() />
    <cfset headingHeight = uploadedImage.GetHeight() />
    I got this error pointing to cfimage line:
    Detail
    javax.imageio.IIOException:   Can't get input stream from URL!
    Message
    An   exception occurred while trying to read the image.
    Any ideas?
    Thanks!
    Johnny

    >> That is an important step in troubleshooting. Even if you think
    >> the file exists, verify it anyway to avoid overlooking possible causes
    Thanks for you help... looks like sometimes the session
    variable is blank.
    Hmm.. there are no session variables in the code you posted. But that is why it is important to post the actual code you are using and to verify all variables and assumptions in your code. I suspect you did not do that, or you probably would have identified the issue sooner But I am glad everything is working for you now.

  • CFIMAGE tag and WriteToBrowser Issue

    Recently installed CF8 on a CF5 machine and started using the
    CFIMAGE tags. I was testing the WriteToBrowser action of
    <cfimage> and all I get is a red X and the path is something
    like ...
    sample code looks like the following:
    <cfimage name="objThumbnail"
    source="#Your_Root_Directory_Info#images\an\#FILE.ServerFile#"
    />
    <!--- resize images or create thumbnail images while
    maintaining the aspect ratio --->
    <cfset
    ImageScaleToFit(objThumbnail,TMax_Width,TMAX_Height) />
    <!--- write new image to browser --->
    <cfimage action="writetobrowser" source="#objThumbnail#"
    format="jpg" />
    The result is and image source like the following:
    http://www.yoursite.com/CFFileServlet/_cf_image/_cfimg7565794973859563543.jpg
    Nothing but a RED X ... image not found.
    Any suggestions?
    Thanks.

    I have a similar/same problem. My code is valid, and the
    image will show up -- but only if the code resides in the default
    c:\Inetpub\wwwroot directory. If my code is in a different
    directory, I am unable to access the /CFFileServlet (or any other
    servlet) mapping, and the images do not display.
    Anybody know how to fix that? My laptop development machine
    is running XP Pro with IIS 5.1.

  • CFIMAGE question

    Hello,
    I am using CFIMAGE to grab a dynamically generated jpg image
    from a internal server, converting it to a gif and then adding a
    watermark image on top of it using imagepaste.
    The code seems to work fine for one URL, but not another (the
    url contains values used to dynamically create the image and are
    required).
    Good url
    http://10.0.0.166:8082/Masters/LO/SPLO01-58?mps_copyfit=all&scale=2&layerattribute=white%2 0mask&visible=yes
    Bad url
    http://10.0.0.166:8082/Masters/LO/SPLO01-58?mps_copyfit=all&Text01=made
    fresh&Text02=LL&Text03=luciano&Text04=linguini&Text05=from
    scratch&Text06=&Text07=&Text08=&Text09=&Text10=&Text11=&Text12=&Text13=&scale=2&layerattr ibute=white%20mask&visible=yes
    Are their characters in the 'bad url' that are forbidden or
    is possible that the 'source' in CFIMAGE has a max length? Other
    ideas?
    Best regards,
    Kevin R.

    I replaced all of the offending spaces with %20 and it seems
    to have resolved the issue. I will have to do some testing to see
    if there are any other characters that will cause it to break and
    replace those as well.
    Best regards,
    Kevin R.

  • Cfimage error

    I am writing code to resize a relevant image on my system. But though I have followed the coding rules correctly, I keep getting an error that:
    The images/consumer/ image format is not supported on this operating system.
    Use GetReadableImageFormats() and GetWriteableImageFormats() to see which image formats are supported.
    What is wrong with my code? TIA
    Here is my code:
    <<cfset imgTypes = GetReadableImageFormats()>
      <cfoutput query="ConsumerSimpleSearch">
      <tr>
        <td width="10%"><!--- creating a resized version of uploaded image of product. --->
    <cfimage source="images/consumer/#Cnsmr_ProductIMAGE#" action="resize" width="100" height="60" name="resizedImg" format= "#imgTypes#">
    <cfimage source="#resizedImg#" action="writeToBrowser"><!---img src="images/consumer/#Cnsmr_ProductIMAGE#"---></font></td>
        <td width="90%"><font size="+2">#Cnsmr_ProductDESCRIPTION# </font>  <font size="+2"><a href="showProductDetail.cfm?Cnsmr_ProductID=#URLEncodedFormat(TRIM(Cnsmr_ProductID))#">#C nsmr_ProductMODELNo# </font> </a>
                    <font size="+2">#Cnsmr_ProductMODELYEAR# </font>   <font size="+2">#Cnsmr_ProductPRICE#</font>  <font size="+2">#User_id#</font>
    </td>
      </tr> <br> </br>
    </table>
    </cfoutput>

    Abdlah wrote:
    why is the filename that is supposed to be resolved by the #Cnsmr_ProductIMAGE# of my path "/images/consumer/#Cnsmr_ProductIMAGE#" not being shown?
    Look at the results of your query.  What is the value of #Cnsmr_ProductIMAGE# and does images/consumer/#Cnsmr_ProductIMAGE# produce a valid image path?
    Also thought the function the results returned by GetReadableImageFormats() ( and I get: BMP,GIF,JFIF,JPEG,JPEG 2000,JPEG-LOSSLESS,JPEG-LS,JPEG2000,JPG,PNG,PNM,RAW,TIF,TIFF,WBMP) are all acceptable.
    The GetReadableImageFormats() is just a troubleshooting tool.  It tells you _all_ of the image types the server can create.  But that is not what the "format" property is asking for.  An image can only have one format at a time. It can be a PNG, GIF, JPG etcetera.  It cannot be _all_ of those at the same time.  The "format" value is a single value.  That value is the type of image you would like to create:  a png, gif, ... OR ... jpg.

Maybe you are looking for

  • IPhone (AT&T) not receiving texts from Blackberry (Verizon)

    Hey Guys, The problem is pretty much stated above. I'm on an Iphone 4s (this was happing on the 3gs as well, so I don't believe that it is an Iphone problem) - i just didn't realize it until now that it was a problem. - her phone (the blackberry. don

  • Is there a free trial for iwork? I would like to see how feasible it is before shifting from MS Office which i use presently?

    is there a free trial for iwork? I would like to see how feasible it is before shifting from MS Office which i use presently?

  • Alarm tone of a 3720

    I do not know if this is the right place to ask this, but I want to see if there is anyone who knows if it is possible to get a holde of a file of the standard alarm tone on a Nokia 3720 classic? Or if anyone ahve an idea to where I might have a bett

  • Need help on data Conversion

    Hi Gurus, Please help me with process and validations in following conversions. Sub Inventory conversion Hr Locations conversion. I am working on R12 implementation project. Thanks in advance. GVK.

  • LONG_ARRAY search

    How can I search a value that is inside of an attribute of type LONG_ARRAY? I want to get, for example, all documents that this attribute contains the number '1'. How do I build the search clause? Is it possible to do this kind of search using the cl