0

/t5/coldfusion-discussions/cfimage-question/td-p/954765
May 12, 2008
May 12, 2008
Copy link to clipboard
Copied
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&visi...
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.
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&visi...
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer

May 12, 2008
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.
Best regards,
Kevin R.

Guest
AUTHOR
/t5/coldfusion-discussions/cfimage-question/m-p/954766#M87241
May 12, 2008
May 12, 2008
Copy link to clipboard
Copied
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.
I will try replacing them and seeing if that works.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/coldfusion-discussions/cfimage-question/m-p/954767#M87242
May 12, 2008
May 12, 2008
Copy link to clipboard
Copied
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.
Best regards,
Kevin R.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

