Re: JPG in Database - Retrieve for web page
Why are you trying to oputput div and form tags as part of an image? mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/11/14 Kim Hoopingarner : > > CORRECT CODE! > > > > returnvariable="qMsigImage"> > > > > > > > > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328389 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: JPG in Database - Retrieve for web page
> Well, Time for me to climb back down into the hole and hide > my head! :) Brew a fresh pot of coffee would you? I am sure one of us will be joining you there soon enough ;-) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328374 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: JPG in Database - Retrieve for web page
Well, Time for me to climb back down into the hole and hide my head! :) -Original Message- From: Leigh [mailto:cfsearch...@yahoo.com] Sent: Friday, November 13, 2009 3:37 PM To: cf-talk Subject: Re: JPG in Database - Retrieve for web page > That gives an error that my data must be binary on the > cfcontent. Any other thoughts? > You forgot the # signs. So CF thinks the value is the literal string: "qMsigImage.binaryObject": ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328373 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: JPG in Database - Retrieve for web page
> That gives an error that my data must be binary on the > cfcontent. Any other thoughts? > You forgot the # signs. So CF thinks the value is the literal string: "qMsigImage.binaryObject": ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328372 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: JPG in Database - Retrieve for web page
You may have to do toBinary(toBase64(yourVariable)) -Original Message- From: Kim Hoopingarner [mailto:k.hoopingar...@e-details.com] Sent: Friday, November 13, 2009 3:25 PM To: cf-talk Subject: Re: JPG in Database - Retrieve for web page That gives an error that my data must be binary on the cfcontent. Any other thoughts? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328371 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: JPG in Database - Retrieve for web page
toBinary() ? -Original Message- From: Kim Hoopingarner [mailto:k.hoopingar...@e-details.com] Sent: Friday, November 13, 2009 3:25 PM To: cf-talk Subject: Re: JPG in Database - Retrieve for web page That gives an error that my data must be binary on the cfcontent. Any other thoughts? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328370 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: JPG in Database - Retrieve for web page
That gives an error that my data must be binary on the cfcontent. Any other thoughts? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328369 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: JPG in Database - Retrieve for web page
CORRECT CODE! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328368 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: JPG in Database - Retrieve for web page
I don't fully remember but I believe that you have to wrap the data in toBase64() -Original Message- From: Kim Hoopingarner [mailto:k.hoopingar...@e-details.com] Sent: Friday, November 13, 2009 3:20 PM To: cf-talk Subject: Re: JPG in Database - Retrieve for web page Thanks for the heads up on performance. Will definitely warn client. What is the trick to streaming to a web page? I am using the cfheader and cfcontent - to no avail. It puts the header out - and then the next line is not seen. here's my simple code ... just trying to get one of those BLOBS to work with a cfinput tag. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328367 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: JPG in Database - Retrieve for web page
Thanks for the heads up on performance. Will definitely warn client. What is the trick to streaming to a web page? I am using the cfheader and cfcontent - to no avail. It puts the header out - and then the next line is not seen. here's my simple code ... just trying to get one of those BLOBS to work with a cfinput tag. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328366 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: JPG in Database - Retrieve for web page
You can store just about any type of file in a database.. jpg, doc, gif. Performance would be my only issue. If just two jpg, should be okay. But, for us, storing 10s of jpgs was a performance nightmare. So we keep the jpg on the hard drives with the path to the jgp in the database. -Original Message- From: Kim Hoopingarner [mailto:k.hoopingar...@e-details.com] Sent: Friday, November 13, 2009 12:06 PM To: cf-talk Subject: JPG in Database - Retrieve for web page I have not tried this before - so I thought I might see if this is feasible. I have stored 2 jpgs in my database - one for the header of the site and one for the left side graphic. I want to retrieve these 2 BLOBS and place them on my web page - removing the need to have the jpg on my file server. Possible? If so - hints? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328364 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
JPG in Database - Retrieve for web page
I have not tried this before - so I thought I might see if this is feasible. I have stored 2 jpgs in my database - one for the header of the site and one for the left side graphic. I want to retrieve these 2 BLOBS and place them on my web page - removing the need to have the jpg on my file server. Possible? If so - hints? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328363 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4