[cfaussie] Determine Server
Hi, I'm setting up cloud servers via a load balancer I want to test the rotation of servers through the round robin allocation of requests over the multiple app servers. Im just trying something simple by dumping HTTP_HOST But that dumps the host of the balancer and not the destination server. How can I determine the server that I land on Regards Dale Fraser http://dale.fraser.id.au http://dale.fraser.id.au http://cfmldocs.com http://cfmldocs.com http://learncf.com http://learncf.com http://flexcf.com http://flexcf.com -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Session Sharing on Cloud Cluster
So RackSpace and Amazon dont support sticky sessions on https, im guessing because the data is encrypted and they cant see it. I was toying with the idea of doing something like this, which would effectivally do the same thing Lets say I have 4 endpoints ap00 (balancer) ap01 (server 1) ap02 (server 2) ap03 (server 3) In on request if the server is ap00, just redirect to the real server im on, which I can obtain (answer to previous question) machineName = createObject(java, java.net.InetAddress).localhost.getCanonicalHostName(); so balancer takes me to 03, I just hard redirect to 03 and user stays on that server. Only downside I can think of, which is a decent downside, is that if a user bookmarks any url, they are on that server forever. Any other options, I cant be the first person to try this. Regards Dale Fraser http://dale.fraser.id.au http://dale.fraser.id.au http://cfmldocs.com http://cfmldocs.com http://learncf.com http://learncf.com http://flexcf.com http://flexcf.com -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Image functions with transparent png images
I am having this issue which i am sure people have had in the past so i am hoping for some advice as to how to get around it. I am uploading a transparent png image file with the following process :- 1. Upload file 2. Read file 3. Store file in memory as binary 4. Delete original file 5. Output image to browser Now if i use the writetobrowser action the image displays as its proper transparency but if i use say cfcontent type=image/png variable=#ToBinary(ToBase64(imageVar))# / then the image messes up and displays with its colors all inverted and no transparency. Does anyone know how i can get around this? I need the image to display with its transparency. From what i can see, even if i pass the png content type in, the browser is seeing it as a JPEG image. Any suggestions? Steve -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Determine Server
You want to get the local ip address of the server? From: Dale Fraser [mailto:d...@fraser.id.au] Sent: Monday, 19 December 2011 10:40 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Determine Server Hi, I'm setting up cloud servers via a load balancer I want to test the rotation of servers through the round robin allocation of requests over the multiple app servers. Im just trying something simple by dumping HTTP_HOST But that dumps the host of the balancer and not the destination server. How can I determine the server that I land on Regards Dale Fraser http://dale.fraser.id.au http://cfmldocs.com http://learncf.com http://flexcf.com -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Session Sharing on Cloud Cluster
Dale The other way to tackle this would be to run your own dedicated load-balancer on your ap00 instance. Your SSL certs would live on ap00 which could then handle the SSL connections and manage the sticky sessions to your actual application servers. This would remove the need for CF to actually know anything about how your app is deployed across the cloud. Phil On 19/12/11 11:13 PM, Dale Fraser wrote: So RackSpace and Amazon dont support sticky sessions on https, im guessing because the data is encrypted and they cant see it. I was toying with the idea of doing something like this, which would effectivally do the same thing Lets say I have 4 endpoints ap00 (balancer) ap01 (server 1) ap02 (server 2) ap03 (server 3) In on request if the server is ap00, just redirect to the real server im on, which I can obtain (answer to previous question) machineName = createObject(java, java.net.InetAddress).localhost.getCanonicalHostName(); so balancer takes me to 03, I just hard redirect to 03 and user stays on that server. Only downside I can think of, which is a decent downside, is that if a user bookmarks any url, they are on that server forever. Any other options, I cant be the first person to try this. Regards Dale Fraser http://dale.fraser.id.au http://cfmldocs.com http://learncf.com http://flexcf.com -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Session Sharing on Cloud Cluster
I'd be surprised if you can't install a SSL cirt on the load balancer. This article seams to indicate it is possible at Amazon: http://awsdocs.s3.amazonaws.com/ElasticLoadBalancing/latest/elb-dg.pdf Paul. On Mon, Dec 19, 2011 at 11:13 PM, Dale Fraser d...@fraser.id.au wrote: So RackSpace and Amazon dont support sticky sessions on https, im guessing because the data is encrypted and they cant see it. ** ** I was toying with the idea of doing something like this, which would effectivally do the same thing ** ** Lets say I have 4 endpoints ** ** ** ** ap00 (balancer) ap01 (server 1) ap02 (server 2) ap03 (server 3) ** ** In on request if the server is ap00, just redirect to the real server im on, which I can obtain (answer to previous question) machineName = createObject(java, java.net.InetAddress).localhost.getCanonicalHostName(); ** ** so balancer takes me to 03, I just hard redirect to 03 and user stays on that server. ** ** Only downside I can think of, which is a decent downside, is that if a user bookmarks any url, they are on that server forever. ** ** Any other options, I cant be the first person to try this. ** ** Regards Dale Fraser ** ** http://dale.fraser.id.au http://cfmldocs.com http://learncf.com http://flexcf.com ** ** -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- Paul Kukiel -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Session Sharing on Cloud Cluster
Any recommendations, I was also looking for a third party SSL load balancer service if anyone knows of such a thing. Regards Dale Fraser http://dale.fraser.id.au http://cfmldocs.com http://learncf.com http://flexcf.com From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Phil Haeusler Sent: Tuesday, 20 December 2011 8:31 AM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Session Sharing on Cloud Cluster Dale The other way to tackle this would be to run your own dedicated load-balancer on your ap00 instance. Your SSL certs would live on ap00 which could then handle the SSL connections and manage the sticky sessions to your actual application servers. This would remove the need for CF to actually know anything about how your app is deployed across the cloud. Phil On 19/12/11 11:13 PM, Dale Fraser wrote: So RackSpace and Amazon dont support sticky sessions on https, im guessing because the data is encrypted and they cant see it. I was toying with the idea of doing something like this, which would effectivally do the same thing Lets say I have 4 endpoints ap00 (balancer) ap01 (server 1) ap02 (server 2) ap03 (server 3) In on request if the server is ap00, just redirect to the real server im on, which I can obtain (answer to previous question) machineName = createObject(java, java.net.InetAddress).localhost.getCanonicalHostName(); so balancer takes me to 03, I just hard redirect to 03 and user stays on that server. Only downside I can think of, which is a decent downside, is that if a user bookmarks any url, they are on that server forever. Any other options, I cant be the first person to try this. Regards Dale Fraser http://dale.fraser.id.au http://cfmldocs.com http://learncf.com http://flexcf.com -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Determine Server
Hi Dale, If you run into trouble with stuff like that, I know we have implemented something similar here for some of our bigger clients, like dpt of defence or ato. In our case the session itself was spread across multiple app servers and a single DB server (I wasn't involved with that project, though). Now we're implementing terracotta and swapping transfer with hibernate to prepare for the even nastier load we'll get with US departments. Anyway, people here are pretty busy at the moment, but if you run into problems with that stuff, feel free to send me an email and I'll shoot it around the dev team. Cheers, Tof. On Tue, Dec 20, 2011 at 3:55 AM, Steve Onnis st...@cfcentral.com.au wrote: You want to get the local ip address of the server? ** ** *From:* Dale Fraser [mailto:d...@fraser.id.au] *Sent:* Monday, 19 December 2011 10:40 PM *To:* cfaussie@googlegroups.com *Subject:* [cfaussie] Determine Server ** ** Hi, ** ** I’m setting up cloud servers via a load balancer ** ** I want to test the rotation of servers through the round robin allocation of requests over the multiple app servers. ** ** Im just trying something simple by dumping HTTP_HOST ** ** But that dumps the host of the balancer and not the destination server.*** * ** ** How can I determine the server that I land on ** ** Regards Dale Fraser ** ** http://dale.fraser.id.au http://cfmldocs.com http://learncf.com http://flexcf.com ** ** -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
[cfaussie] Re: Session Sharing on Cloud Cluster
You're really thinking of trusting a 3rd party with the SSL certificates of your sites? I'd second Phil's recommendation of rolling your own balancer setup. Terminate the SSL on STunnel (http://http://www.stunnel.org/) then forward that through HAProxy (http://haproxy.1wt.eu/) Both are very lightweight and simple to configure. Instead using URLs to choose a server consider using cookies. Most proxies can transparently set a cookie that then stickies the user to a given webserver. This way you don't have to change any of the website code. Paul Haddon On Dec 20, 8:47 am, Dale Fraser d...@fraser.id.au wrote: Any recommendations, I was also looking for a third party SSL load balancer service if anyone knows of such a thing. Regards Dale Fraser -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Session Sharing on Cloud Cluster
Yes, I found that afterwards with Amazon, most don't support it. I'd be happy with IP based server allocation. Regards Dale Fraser http://dale.fraser.id.au http://cfmldocs.com http://learncf.com http://flexcf.com From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Paul Kukiel Sent: Tuesday, 20 December 2011 8:47 AM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Session Sharing on Cloud Cluster I'd be surprised if you can't install a SSL cirt on the load balancer. This article seams to indicate it is possible at Amazon: http://awsdocs.s3.amazonaws.com/ElasticLoadBalancing/latest/elb-dg.pdf Paul. On Mon, Dec 19, 2011 at 11:13 PM, Dale Fraser d...@fraser.id.au wrote: So RackSpace and Amazon dont support sticky sessions on https, im guessing because the data is encrypted and they cant see it. I was toying with the idea of doing something like this, which would effectivally do the same thing Lets say I have 4 endpoints ap00 (balancer) ap01 (server 1) ap02 (server 2) ap03 (server 3) In on request if the server is ap00, just redirect to the real server im on, which I can obtain (answer to previous question) machineName = createObject(java, java.net.InetAddress).localhost.getCanonicalHostName(); so balancer takes me to 03, I just hard redirect to 03 and user stays on that server. Only downside I can think of, which is a decent downside, is that if a user bookmarks any url, they are on that server forever. Any other options, I cant be the first person to try this. Regards Dale Fraser http://dale.fraser.id.au http://cfmldocs.com http://learncf.com http://flexcf.com -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com mailto:cfaussie%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- Paul Kukiel -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Session Sharing on Cloud Cluster
Hi Dale, what's the code like? One option is to not use the session scope and go to client vars. No issue then... :-) -- Yours, Kym Kovan mbcomms.net.au -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Session Sharing on Cloud Cluster
Yeah, I considered that too, I'll have to search the code base and see how widely we use them Thanks Regards Dale Fraser http://dale.fraser.id.au http://cfmldocs.com http://learncf.com http://flexcf.com -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Kym Kovan Sent: Tuesday, 20 December 2011 10:56 AM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Session Sharing on Cloud Cluster Hi Dale, what's the code like? One option is to not use the session scope and go to client vars. No issue then... :-) -- Yours, Kym Kovan mbcomms.net.au -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Session Sharing on Cloud Cluster
On 20/12/2011 11:10, Dale Fraser wrote: Yeah, I considered that too, I'll have to search the code base and see how widely we use them or do the client session trick. Copy to client scope to session in OnRequestStart and back in OnRequestEnd, serialized as needed... -- Yours, Kym Kovan mbcomms.net.au -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Session Sharing on Cloud Cluster
That could work, Thanks Regards Dale Fraser http://dale.fraser.id.au http://cfmldocs.com http://learncf.com http://flexcf.com -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Kym Kovan Sent: Tuesday, 20 December 2011 11:30 AM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Session Sharing on Cloud Cluster On 20/12/2011 11:10, Dale Fraser wrote: Yeah, I considered that too, I'll have to search the code base and see how widely we use them or do the client session trick. Copy to client scope to session in OnRequestStart and back in OnRequestEnd, serialized as needed... -- Yours, Kym Kovan mbcomms.net.au -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Session Sharing on Cloud Cluster
What about turning on JSessionIDs, and use a distributed cache to store session information in. CF sets up the unique IDs for you, and you just use that value to store data in your distributed cache. Then it doesn't matter what server you are on. Amazon has ElastiCache - should be easy enough to get going. Mark On Tue, Dec 20, 2011 at 1:23 PM, MrBuzzy mrbu...@gmail.com wrote: I tried this on Jelastic and it pretty much works perfectly out of the box. Here's a URL to try; https://mrbuzzy.jelastic.com/balance/ It will out put various things for debugging, try it from more than one browser, machine, device, etc. Your HTTPS request will hit and 'stick' on a particular host. It looks like Nginx is handling the SSL decryption and 'stickiness' to one of many hosts. It also uses Tomcat clustering an session replication. The 'node' within the Tomcat cluster can be seen in the JSESSIONID which is used for 'stickiness' at the Tomcat level. ColdFusion is seeing a non-SSL request on port 80. Also attaching a few screenshots. Cheers. On 20 December 2011 12:09, Dale Fraser d...@fraser.id.au wrote: That could work, Thanks Regards Dale Fraser http://dale.fraser.id.au http://cfmldocs.com http://learncf.com http://flexcf.com -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Kym Kovan Sent: Tuesday, 20 December 2011 11:30 AM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Session Sharing on Cloud Cluster On 20/12/2011 11:10, Dale Fraser wrote: Yeah, I considered that too, I'll have to search the code base and see how widely we use them or do the client session trick. Copy to client scope to session in OnRequestStart and back in OnRequestEnd, serialized as needed... -- Yours, Kym Kovan mbcomms.net.au -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- E: mark.man...@gmail.com T: http://www.twitter.com/neurotic W: www.compoundtheory.com 2 Devs from Down Under Podcast http://www.2ddu.com/ -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Image functions with transparent png images
Thought i would push this one back out into the ether to see if anyone had any ideas... From: Steve Onnis [mailto:st...@cfcentral.com.au] Sent: Tuesday, 20 December 2011 3:46 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Image functions with transparent png images I am having this issue which i am sure people have had in the past so i am hoping for some advice as to how to get around it. I am uploading a transparent png image file with the following process :- 1. Upload file 2. Read file 3. Store file in memory as binary 4. Delete original file 5. Output image to browser Now if i use the writetobrowser action the image displays as its proper transparency but if i use say cfcontent type=image/png variable=#ToBinary(ToBase64(imageVar))# / then the image messes up and displays with its colors all inverted and no transparency. Does anyone know how i can get around this? I need the image to display with its transparency. From what i can see, even if i pass the png content type in, the browser is seeing it as a JPEG image. Any suggestions? Steve -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Image functions with transparent png images
have you tried writing the file out to the filesystem first with a .png extension? personally I hate the dependence on filenames for setting file types with the image support in CF, it's really annoying z On Tue, Dec 20, 2011 at 1:53 PM, Steve Onnis st...@cfcentral.com.au wrote: Thought i would push this one back out into the ether to see if anyone had any ideas... From: Steve Onnis [mailto:st...@cfcentral.com.au] Sent: Tuesday, 20 December 2011 3:46 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Image functions with transparent png images I am having this issue which i am sure people have had in the past so i am hoping for some advice as to how to get around it. I am uploading a transparent png image file with the following process :- 1. Upload file 2. Read file 3. Store file in memory as binary 4. Delete original file 5. Output image to browser Now if i use the “writetobrowser” action the image displays as its proper transparency but if i use say cfcontent type=image/png variable=#ToBinary(ToBase64(imageVar))# / then the image messes up and displays with its colors all inverted and no transparency. Does anyone know how i can get around this? I need the image to display with its transparency. From what i can see, even if i pass the png content type in, the browser is seeing it as a JPEG image. Any suggestions? Steve -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
RE: [cfaussie] Image functions with transparent png images
Yeah i have and once i write it, the transparency is fine, even the tmp file cf creates when it uses the cfimageservlet works fine. I don’t want to write it though. There are other processes that i need to run before i fully commit it to the file system which is why i am wanting to do this -Original Message- From: Zac Spitzer [mailto:zac.spit...@gmail.com] Sent: Tuesday, 20 December 2011 1:56 PM To: cfaussie@googlegroups.com Subject: Re: [cfaussie] Image functions with transparent png images have you tried writing the file out to the filesystem first with a .png extension? personally I hate the dependence on filenames for setting file types with the image support in CF, it's really annoying z On Tue, Dec 20, 2011 at 1:53 PM, Steve Onnis st...@cfcentral.com.au wrote: Thought i would push this one back out into the ether to see if anyone had any ideas... From: Steve Onnis [mailto:st...@cfcentral.com.au] Sent: Tuesday, 20 December 2011 3:46 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Image functions with transparent png images I am having this issue which i am sure people have had in the past so i am hoping for some advice as to how to get around it. I am uploading a transparent png image file with the following process :- 1. Upload file 2. Read file 3. Store file in memory as binary 4. Delete original file 5. Output image to browser Now if i use the “writetobrowser” action the image displays as its proper transparency but if i use say cfcontent type=image/png variable=#ToBinary(ToBase64(imageVar))# / then the image messes up and displays with its colors all inverted and no transparency. Does anyone know how i can get around this? I need the image to display with its transparency. From what i can see, even if i pass the png content type in, the browser is seeing it as a JPEG image. Any suggestions? Steve -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- Zac Spitzer Solution Architect / Director Ennoble Consultancy Australia http://www.ennoble.com.au http://zacster.blogspot.com +61 405 847 168 -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en. -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.
Re: [cfaussie] Image functions with transparent png images
Steve, My guess would be that the cfcontent is using the internal image handling, which does seem kinda strange, but as we all know the internal image handling in CF will not handle aRGB images. It looks like your best option would be the write to browser. -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543 On Tue, Dec 20, 2011 at 2:02 PM, Steve Onnis st...@cfcentral.com.au wrote: Yeah i have and once i write it, the transparency is fine, even the tmp file cf creates when it uses the cfimageservlet works fine. I don’t want to write it though. There are other processes that i need to run before i fully commit it to the file system which is why i am wanting to do this -- You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com. To unsubscribe from this group, send email to cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.