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.

Similar Messages

  • Questions about CFIMAGE

    I'm planning to use CFIMAGE on a website and had a few questions about what would be the most efficient way to do this.  I have a lot of images on some pages, so it's important to load them the most efficient & fastest way possible.
    I noticed that by default, the writeToBrowser function displays images as a .png image.  Is there a reason for this?  Does that mean it would be best for my original image to be a .png as well, or would it load just as quickly if I start off with a .jpg file? 
    Is there a parameter in the writeToBrowser function to add an alt tag?
    Thanks

    Hi,
    I
    noticed that by default, the writeToBrowser function displays images as
    a .png image.  Is there a reason for this?  Does that mean it would be
    best for my original image to be a .png as well, or would it load just
    as quickly if I start off with a .jpg file? 
    If you don't specify a value for the "format" attribute (in the <cfimage action="writeToBrowser> tag), it outputs the image in "PNG" format by default, And you want to output in "JPG" format set the format attribute as format="jpg".
    Note : You can't output the image in GIF format if you use the "writeToBrowser" action, and when you try do so, you will only get that in PNG format.
    Is there a parameter in the writeToBrowser function to add an alt tag?
    Yeah.. But you may need to install the ColdFusion 8 - Updater 1 which supports all the image attributes.
    http://www.petefreitag.com/item/670.cfm
    You may also try Ben Nadel's "ImageWriteToBrowserCustom" UDF which can be dowloaded here,
    http://www.bennadel.com/blog/846-Styling-The-ColdFusion-8-WriteToBrowser-CFImage-Output.ht m
    HTH

  • 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

    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

  • Cfimage inside cfdocument problem

    Very strange, but repeatable issue I've run into.  I'm using the barbecue Java barcode generator library to generate code128 compliant barcodes which are then handed to cfimage writeToBrowser to finally end up with printable packing/mailing labels.  When rendered to screen, everything works perfectly, but as soon as I wrap it in a cfdocument tag, so that we can generate as a pdf for printing on a label printer, I'm ending up with the wrong image on the wrong label in a few cases.  It's always the same records that end up reusing an image from an earlier record (and always the same earlier record).  I can check in the ColdFusion8\tmpCache\CFFileServlet\_cf_image folder and see that all the correct images were created by the cfimage tag, but for whatever reason, some of the images don't make it into the pdf, but are replaced by a different barcode from an earlier record.  I can't see any commonality between the two records and if I intentionally remove the earlier record from the query, the proper barcode shows up.
    So, any ideas about where to go from here?  Anybody know anything about how cfdocument pulls in images and if there is any kind of caching or prechecking of the images before rendering.  I actually checked to make sure the two files didn't have the same MD5 sum to see if there was something happening there where CF thinks it's the same image.  They were not the same.
    I've tried this on two CF 8.01 boxes with the same result.  Always the same records, same images, same problem, even if I limit the query to only the two problem records.  I'm totally stumped.  Anybody?

    jeff.c wrote:
    Nope.  All grouping and loops are necessary based on the shape of the data and the required output based on the number of labels required for each row in the source query.  I'm doing something at each stage of the grouping (although I removed some of that because it wasn't really relevant to the question) to build these labels.  I'm quite confident that the grouping and looping is correct and not part of the problem.  In fact, I've built a simple test page that removes all the complexity of my grouping and query and will still produce this problem (although you have to have the barbecue library to test).
    <cfset bbq = createObject("java", "net.sourceforge.barbecue.BarcodeFactory") />
    <cfset ih = createObject("java", "net.sourceforge.barbecue.BarcodeImageHandler") />
    <cfscript>
              function getCode128 (data)           {
        barcode = bbq.createCode128(data);
        barcode.setBarWidth( 1 );
        barcode.setBarHeight( 50 );
        barcode.setDrawingText( false );
        barcode.setDrawingQuietSection( false );
        barcode.setResolution( 200 );
        newImg = ih.getImage( barcode );
        barcodeImage = ImageNew(newImg);
        return barcodeImage;
    </cfscript>
    <cfset list = "00413001811,00403001811" />
    <cfdocument format="pdf" pagewidth="4" pageheight="6.0" pagetype="CUSTOM" margintop="0.17" marginbottom="0.05" marginleft="0.17" marginright="0.17">
    <html>
              <head>
              </head>
              <body>
                        <cfloop list="#list#" index="i">
                                  <p><cfimage action="writetobrowser" source="#getCode128("#i#")#" /></p>
                                  <p><cfoutput>#i#</cfoutput></p>
                        </cfloop>
              </body>
    </html>
    </cfdocument>
    The question remains why it fails with, but works without, cfdocument. Does cfdocument introduce a new page context? I wonder. If so, then what -==cfSearching==- said about varring the variables would immediately make sense. Unvarred variables belong to the context of the current page.
    Another issue may arise from  <cfloop list="#list#" index="i">. You implicitly assume that ColdFusion will process the list elements in the exact order in which they appear in the list. I suspect ColdFusion wont always. It may internally apply some kind of sorting, and begin with the last element in the list.

  • Cfimage hotfix for 64 bit

    We are running CF 8 on 64 bit Windows. Version 8,0,1,195765
    We are running into the error where we think cfimage is
    leaving a file locked and causing the
    coldfusion.image.ImageWriter$ImageWritingException error.
    My question is, is this the right hotfix for 64 bit as well?
    http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403411&sliceId=1

    Generally hotfixes can be applied to 32 and 64 bit versions.
    You'll want to look in this path (or search) for your file:
    ..jrun4\servers\(instance_name)\cfusion-ear\cfusion-war\web-inf\cfusion\lib

  • CFIMAGE - first time using it - how do I..

    Hello, everyone.
    I've never used CFIMAGE, before, but I'm using it now.  I really like it.  But I have a question.
    I'm pulling BLOB from a database and using that to writeToBrowser.  Is there a way to align the image left so that accompanying text will flow around it to the right?
    Thanks,
    ^_^

    Hi, Miguel-F, and thanks for responding.
    Currently, it (along with text pulled from database) resides inside a div and paragraph, like so:
    <div>
      <h5>blah</h5>
      <p><cfimage>#text from database#</p>
    </div>
    But this is starting the text immediately following the image, starting at the image lower-right corner.  Do you think putting it in a div and aligning the div to the left will accomplish that?
    ^_^

  • Questions on Print Quote report

    Hi,
    I'm fairly new to Oracle Quoting and trying to get familiar with it. I have a few questions and would appreciate if anyone answers them
    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    Thanks and Appreciate your patience
    -PC

    1) We have a requirement to customize the Print Quote report. I searched these forums and found that this report can be defined either as a XML Publisher report or an Oracle Reports report depending on a profile option. Can you please let me know what the name of the profile option is?
    I think I posted it in one of the threads2) When I select the 'Print Quote' option from the Actions drop down in the quoting page and click Submit I get the report printed and see the following URL in my browser.
    http://<host>:<port>/dev60cgi/rwcgi60?PROJ03_APPS+report=/proj3/app/appltop/aso/11.5.0/reports/US/ASOPQTEL.rdf+DESTYPE=CACHE+P_TCK_ID=23731428+P_EXECUTABLE=N+P_SHOW_CHARGES=N+P_SHOW_CATG_TOT=N+P_SHOW_PRICE_ADJ=Y+P_SESSION_ID=c-RAuP8LOvdnv30grRzKqUQs:S+P_SHOW_HDR_ATTACH=N+P_SHOW_LINE_ATTACH=N+P_SHOW_HDR_SALESUPP=N+P_SHOW_LN_SALESUPP=N+TOLERANCE=0+DESFORMAT=RTF+DESNAME=Quote.rtf
    Does it mean that the profile in our case is set to call the rdf since it has reference to ASOPQTEL.rdf in the above url?
    Yes, your understanding is correct.3) When you click on submit button do we have something like this in the jsp code: On click call ASOPQTEL.rdf. Is the report called using a concurrent program? I want to know how the report is getting invoked?
    No, there is no conc program getting called, you can directly call a report in a browser window, Oracle reports server will execute the report and send the HTTP response to the browser.4) If we want to customize the jsp pages can you please let me know the steps involved in making the customizations and testing them.
    This is detailed in many threads.Thanks
    Tapash

  • Satellite P300D-10v - Question about warranty

    HI EVERYBODY
    I have these overheating problems with my laptop Satellite P300D-10v.
    I did everything I could do to fix it without any success..
    I get the latest update of the bios from Toshiba. I cleaned my lap with compressed air first and then disassembled it all and cleaned it better.(it was really clean insight though...)
    BUT unfortunately the problem still exists...
    So i made a research on the internet and I found out that most of Toshiba owners have the same exactly problem with their laptop.
    Well i guess this is a Toshiba bug for many years now.
    Its a really nice lap, cool sound (the best in laptop ever) BUT......
    So I wanted to make a question. As i am still under warranty, can i return this laptop and get my money back or change it with a different one????
    If any body knows PLS let me know.
    chears
    Thanks in advance

    Hi
    I have already found you other threads.
    Regarding the warranty question;
    If there is something wrong with the hardware then the ASP in your country should be able to help you.
    The warranty should cover every reparation or replacement.
    But I read that you have disasembled the laptop at your own hand... hmmm if you have disasembled the notebook then your warrany is not valid anymore :(
    I think this should be clear for you that you can lose the warrany if you disasemble the laptop!
    By the way: you have to speak with the notebook dealer where you have purchased this notebook if you want to return the notebook
    The Toshiba ASP can repair and fix the notebook but you will not get money from ASP.
    Greets

  • Question regarding NULL and forms

    Hi all, i have a survey that im working on that will be sent via email.
    I'm having an issue though. if i have a multiple choice question, and the user only selects one of the choices, all the unselected choices return as NULL. is there a way i can filter out anytihng that says "NULL" so it only shows the selected options?
    thanks.
    here is the page that retrieves all the data. thanks
    <body>
    <p>1) Is this your first visit to xxxxxxx? <b><%=request.getParameter("stepone") %></b>
    </p>
    <p> </p>
    <p>2) How did You Learn About xxxxxxx?</p>
    <p><b><%=request.getParameter("steptwoOne") %></b>
      <br>
        <b><%=request.getParameter("steptwoTwo") %></b>
      <br>
        <b><%=request.getParameter("steptwoThree") %></b>
      <br>
        <b><%=request.getParameter("steptwoFour") %></b>
      <br>
        <b><%=request.getParameter("steptwoOther") %></b>
    </p>
    <p> </p>
    <p>3) What was your main reason for visiting xxxxx?</p>
    <p><b><%=request.getParameter("stepthreeOne") %></b>
        <br>
          <b><%=request.getParameter("stepthreeTwo") %></b>
        <br>
          <b><%=request.getParameter("stepthreeThree") %></b>
        <br>
          <b><%=request.getParameter("stepthreeFour") %></b>
        <br>
          <b><%=request.getParameter("stepthreeOther") %></b>
    </p>
    <p>4) did you find the information you were looking for on this site?</p>
    <p><b><%=request.getParameter("stepfour") %>
    <br>
    <b><%=request.getParameter("stepfourOther") %></b>
    </b></p>
    <p>5) Do you plan on using this website in the future?</p>
    <p><b><%=request.getParameter("stepfive") %></b></p>
    <p>6) What is your gender</p>
    <p><b><%=request.getParameter("stepsix") %></b></p>
    <p>7) What is your age group</p>
    <p><b><%=request.getParameter("stepseven") %></b></p>
    8) Would you like to take a moment and tell us how we can improve your experience on xxxxxxxxxx?
    <p><b><%=request.getParameter("stepeightFeedback") %></b></p>

    i was messing around and came up with this. it doesnt remove the null, but if it is null it adds ABC beside it. so i think i might be getting close. i just need to figure out how to replace the null.
    code]
    <b><%=request.getParameter("steptwoFour") %></b>
         <% if (request.getParameter("steptwoFour") == null ) {
         %>
         <% out.print("abc"); %>
         <% }
         %>

  • Anyone know how to remove Overdrive books from my iphone that have been transferred from my computer? They do not show up on itunes. I see a lot of answers to this question but they all are based on being able to see the books in iTunes.

    How do I remove Overdrive books from the library that were downloaded onto my computer then transferred to my iphone? The problem is that they do not show up in iTunes.
    I see this question asked a lot when I google, but they always give answers that assumes you can find the books in iTunes either under the books tab, or the audio books tab or in the music. They do not show up anywhere for me. They do not remove from the app like the ones I downloaded directly onto my iphone.the related archived article does not answer it either.  I even asked a guy working at an apple store and he could not help either.   Anybody...?
    Thanks!

    there is an app called daisydisk on mac app store which will help you see exactly where the memory is focused and consumed try using that app and see which folders are using more memory

  • Basic question

    Hello, i have a basic question. if i have defined 2 fields in a cube or a dso:
    Name Quantity
    and from the external flat file i get some characters for my quantity field. would my load fail?  for standard dso and for write optimized?
    NOTE: quantity field is a keyfigure defined as numeric.
    and the load coming in has "VIKPATEL" for Quantity field and not numbers.
    thanks

    Hi Vik,
    Yes, the load will fail.
    May be you coud first load this data into BW (into PSA) and set both fields as characters fields. Then you can create DSO, do transformation from this PSA to the DSO, and put your logic as to what do you want to do with those Quantity that is not number (e.g. convert to 0, or 'Not assgined', etc).
    You can use transfer rule, or a clean up ABAP code in the start routine.
    Hope this helps.

  • Mid 2010 15" i5 Battery Calibration Questions

    Hi, I have a mid 2010 15" MacBook Pro 2.4GHz i5.
    Question 1: I didn't calibrate my battery when I first got my MacBook Pro (it didn't say in the manual that I had to). I've had it for about a month and am doing a calibration today, is that okay? I hope I haven't damaged my battery? The calibration is only to help the battery meter provide an accurate reading of how much life it has remaining, right?
    Question 2: After reading Apple's calibration guide, I decided to set the MacBook Pro to never go to sleep (in Energy Saver System Preference) and leave it on overnight so it would run out of power and go to sleep, then I'd leave it in that state for at least 5 hours before charging it. When I woke up, the light on the front wasn't illuminated. It usually pulsates when in Sleep. Expectedly, it wouldn't wake when pressing buttons on the keyboard. So, what's happened? Is this Safe Sleep? I didn't see any "Your Mac is on reserve battery and will shut down" dialogues or anything similar, as I was asleep! I've left it in this state while I'm at work and will charge it this afternoon. Was my described method okay for calibration or should I have done something different?
    Question 3: Does it matter how quickly you drain your battery when doing a calibration? i.e is it okay to drain it quickly (by running HD video, Photo Booth with effects etc) or slowly (by leaving it idle or running light apps)?
    Thanks.
    Message was edited by: Fresh J

    Fresh J:
    A1. You're fine calibrating the battery now. You might have gotten more accurate readings during the first month if you'd done it sooner, but no harm has been done.
    A2. Your machine has NOT shut down; it has done exactly what it was supposed to do. When the power became critically low, it first wrote the contents of RAM to the hard drive, then went to sleep. When the battery was completely drained some time later, the MBP went into hibernation and the slepp light stopped pulsing and turned off. In that state the machine was using no power at all, but the contents of your RAM were still saved. Once the AC adapter was connected, a press of the power button would cause those contents to be reloaded, and the machine would pick up again exactly where you left off. It is not necessary to wait for the battery to be fully charged before using the machine on AC power, but do leave the AC adapter connected for at least two hours after the battery is fully charged. Nothing that you say you've done was wrong, and nothing that you say has happened was wrong.
    A3. No, it does not matter.

  • Jabber/WebEx Connect SSO Questions

    I've got a few questions around exactly what needs to be done to get SAML working for our Connect accounts to successfully authenticate from Jabber for Windows, Mac, iPhone, and Android.
    We have both a Meeting Center and Connect account under WebEx using Loose Coupled Integration. Just this past week I enabled SAML for our Meeting Center accounts which went off without a hitch with the exception of Meeting Center integration with Jabber, which is now broken with a message about SSO enabled Meeting Sites not being supported (I think this would maybe be fixed if we had Tight Coupled Integration with our two account?).
    Anyway, my questions are...
    For Windows, I understand all clients will need to be reinstalled with the MSI argument for the SSO_ORG_DOMAIN switch I've read about, is that correct? Are there any other switches needed for the reinstall? 
    How will this work with the Mac and mobile clients? There's obviously no command line options to specify for the installations here, will they just know to kick over to my IdP for authentication once they see an email address that falls under an org with SSO enabled? If so, why does the Windows client need to be completely reinstalled and not just know to find the IdP from the Cloud Connect service like Meeting Center does with the Productivity Tools?
    We're just doing this for our Connect Web IM accounts, not attempting any sort of SSO with the phone accounts/UC integration yet.
    Any ideas on getting the Meeting Center integration into Jabber working again?

    I'd suggest posting your question over on the Jabber Pilot forum, as this forum is specific to Jabber Guest questions:
    https://supportforums.cisco.com/community/4551/jabber-pilot-support
    -jim

  • My iPad wont let me download apps bc security questions, but when I try to make them it freezes

    Every time I try to download an app it tells me I need to update my security questions, but once I click to make the questions the box goes white. So I'm not sure how to fix it

    The new questions show on your account on http://appleid.apple.com ? If they do then try logging out and back into your account on your phone (assuming that is where you are trying to purchase from) and see if the new questions then show on it.

Maybe you are looking for

  • Need third party software to move photos from iphone 3GS to my PC.

    Hi, I'm hoping someone can recommend me a good software package that allows me to use my iphone as an external memeory drive so that I can copy 4000(!) photos from my 'Photo Library' without loosing the quality??? (I'm running Windows 7)

  • Which iMac would you recommend?

    I'm a web developer by profession, and I've decided to add an iMac to my home office. MY CURRENT RIG: 3.0Ghz i5 12gb ram 500gb HDD + 500gb (external) NVIDIA GeForce GTX 550 Ti 1GB Windows 7 Home (64-bit) DELL 27" + DELL 22" Monitors (extended desktop

  • WhatsApp major problems

    I keep receiving messages (very annoying-sometimes one message a minute) from the Watts app server saying. "New version of WhatsAPP Messenger is now available. Please visit itunes.com/app/whatsapp and upgrade to the latest version. Your upgrade will

  • How do i remove an account from my ipad and apps store

    Hi my mother inlaw has given me her i pad as she never uses it, the problem is i have set up my own account on itunes but when i go to app store its her email address and pass word it asks for. how do i remove these details from my ipad and how can i

  • Update field of LIKP through trx VL10X and VL01N/O

    Hi Gurus! I have this problem: The client ask me change a field of LIKP table, Shipment blocking reason (TRSPG) having in mind that Route Schedule (AULWE) be empty. This changes must be do it when the user access to anyone of these trxs: VL01N VL01NO