Skip to main content
May 12, 2008
Answered

CFIMAGE question

  • May 12, 2008
  • 1 reply
  • 252 views
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%20mask&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&layerattribute=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.
    This topic has been closed for replies.
    Correct answer
    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.

    1 reply

    May 12, 2008
    On further investigation, it appears that it isn't the over all length that is at issue. It is having issues with the spaces between some of the words.

    I will try replacing them and seeing if that works.
    Correct answer
    May 12, 2008
    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.