Generate image with CFIMAGE - but need to use img tag to serve the content
I create a new image with cfimage, that already works without
any problems.
But instead of using the action="writetobrowser" I need to be
able to use the script inside a img tag:
Example: <img
src="myscript.cfm?somedata=iwanttheimagetocreate>
I found one webpage that deals with that problem (
http://www.webdevelopernews.com/2007/09/14/serving-up-cfimages-via-image-tags/)
but the image served to the browser, when using the code below, is
of a very low quality and another point is that you can't serve
.gif's to the browser.
<cfcontent type="image/jpg"
variable="#ImageGetBlob(backgroundimage)#">
Any suggestions/solutions?
Thanks,
Phil
In that entry Raymond mentions:
"The WriteToBrowser action actually generates HTML that points
to a ‘magic’ URL to serve the image.". ie <img
src="/CFFileServlet/_cf_image/_cfimg-12345036853711072.PNG" alt=""
/>
Perhaps you could create a function that captures the
generated html by using <cfsavecontent>.
<cfsavecontent variable="imageTagHTML">
<cfimage action="writeToBrower" ..>
</cfsavecontent>
Then uses a regular expression to extract and return the url
portion only. ie
"/CFFileServlet/_cf_image/_cfimg-12345036853711072.PNG"
<cfset ExtractedURLHere = SomeFunction(arguments...)>
<cfoutput><img
src="#ExtractedURLHere#"></cfoutput>
Though you could also use the entire html string directly
<cfoutput>#imageTagHTML#</cfoutput>
Similar Messages
-
I have a Macbook Pro (2013) OS 10.8.1. Moved into a university house and need to use ethernet cable. Bought the Thunderbold connection but when I try to use the ethernet with it a webpage comes up saying Wireless Setup and Router Setup? I have previously used ethernets in similar situations and never had to input information like this?
I have tried to turn of the wi-fi but that doesn't work either. I think it could be a something to do with the internet provider because virginmedia comes up on the webpage. This is what comes up:
Wireless Setup
WGR614V9
V1.0.11_1.0.1VGUK
Wireless Setup
Name (SSID):
Security Passphrase (WPA-PSK):
(8-63 characters)
Channel:
01 06 11
Router Setup
Router Password:
(8-63 characters)
any ideas?!? -
Im having massive issues with my email... I cant receive emails for my work email... was working perfectly and now just wont connect, i assume that I need to use my home wifi as the outgoing server?? Please help
For your work email, do you use a well known server or do you use their own server? Their server IMAP and SMTP addresses might of changed or you entered them in wrong. It might be something with your router but unless you blocked every incoming connection, then it should work. I would talk to your tech guys at work to see if it is on their end.
Hope this helped a bit, Sean -
my wife and I share an iCloud account for photo library and iCloud drive mainly for our family photo management, but we use different accounts for iMessage/facetime/calendar/etc. With Yosemite, I can't use continuity/handoff without dumping the primary photo iCloud account and thus our shared photo system. We are running yosemite OS X 10.10 and iOS 8.0.2... Is there any way to do this?
my wife and I share an iCloud account for photo library and iCloud drive mainly for our family photo management, but we use different accounts for iMessage/facetime/calendar/etc. With Yosemite, I can't use continuity/handoff without dumping the primary photo iCloud account and thus our shared photo system. We are running yosemite OS X 10.10 and iOS 8.0.2... Is there any way to do this?
-
I cant copy and paste images with firefox but i can with MS explorer why and how is this?
i cant copy and paste images with firefox but i can with MS explorer why and how is this? i can only copy text but not images is ther a way i can copy images with firefox and how??
I was having this issue with MS Live email. The old Microsoft shortcuts work. For copy press ctrl+c. For paste press ctrl+v. Here is a webpage that lists all Firefox shortcuts. http://www.mouserunner.com/FF_Shortcuts1Printable.html
-
Hi there
I ha
Hi there I have a iPhone 3G and it was with O2 but needed to go onto 3 network so someone on my local market unlocked it and the phone was working fine until I tried to update it through iTunes and it always now stops loading towards the end with an error is there a way to get the phone working again please.Shame you had the iPhone hacked as O2 usually unlock their customers iPhones happily.
We cannot discuss your problem as it is in breach of the Ts&Cs you agreed to on registering
However hint ....you have probably trashed it -
My iPhone is requesting to sync with icloud, but it is using on old ID and password. How do I delete the old ID and password?
To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone, then sign back in with the ID you wish to use. If you don't know the password for your old ID, or if it isn't accepted, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID. Click edit next to the primary email account, change it back to your old email address and save the change. Then edit the name of the account to change it back to your old email address. You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll. When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud). Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was. Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.
-
SRM is a procurement system from SAP which we use to purchase goods and service. We have external catalogs like officemax, cdw etc which we punchout the items and bring it to SRM for ordering.
When we use firefox version 3.5 and below the items which we add from the Catalogs are correctly brought back to SRM for us to order. But when we use versions 3.6.12 the items are not brought back to SRM.
Internet Explorer 7 and 8 works fine. Is there anyway you can help us.
Thanks
JayantHi,
Firstly I would suggest you to upgrade your database from Oracle Release 11.2.0.1.0 to Oracle Release 11.2.0.2 . This is the recommended Oracle 11g database version for SAP solutions. Many of your problem will get resolved with it.
Question 1:
So my first question would be is there any other suggestions besides adjusting the mentioned parameter above in order to ensure that no work processors going into hang state due to RFCs' occupying it as this issue always happens at the end of the month only when there are massive users accessing it.
For immediate resolution the approach you have followed is correct viz limiting number of dialog processes for RFC. Secondly you need to analyze why RFC processing takes so much time. You need check which programs are getting executed by those RFC.
Generate EarlyWatch report for more detailed view
Question 2:
My second question is what went wrong with the libttsh11.so file. How could it be 0 size in PRD when no signs of changes had happen to the PRD system. Is this a proven Oracle Bug or something else since I have never encountered anything like this before.
The libttsh11.so library cannot be found in the related directory.
Cause
The file system is mounted using CIO option, but per Note 257338.1 Direct I/O (DIO) and Concurrent I/O (CIO) on AIX 5L, an ORACLE_HOME on a filesystem mounted with "cio" option is not supported.
Such a configuration will cause, installation, relinking and other unexpected problems.
Solution
Disable the CIO option on the filesystem.
References
NOTE:257338.1 - Direct I/O (DIO) and Concurrent I/O (CIO) on AIX 5L
Hope this helps.
Regards,
Deepak Kori -
we are a creative design studio, we need to use apple mac pro server , so we can make more than a different user to use at the same time doing different activities, on different screens, is it possible?what is the max. no. of users that can work efficient.
Appreciate your support and if possible , how to do this?If you want to work with Mac OS X, you need one computer per simultaneous user.
What you are describing, " Multiple simultaneous logins to a single computer" is not avialable on a regular Mac of any description, unless you decide to use Unix tools instead of Mac OS X.
Server will happily store files for many, many users and provide them to multiple (up to hundreds) of computers at "near hard Drive" speeds over Gigabit Ethernet. It can make the File Sharing part easy. -
Why can't I add appointments to the calendar anymore? I can add to my iPad and they show up and sync with iPhone but I can't add appointments directly to the iPhone calendar. I am on the latest OS version available for iPhone 5s.
Hi,
You cannot manually manage music with match turned on on your iOS device. If you want to manage music manually, you will need to turn off match on your iPhone.
Jim -
I have a macbookpro with a second monitor connected using an Apple connector. The two screens show different parts of the desktop. My cat walked across the keyboard touching various keys, and now the two monitors are showing the same thing. How do I undo what the cat did?
Have you tried HELP in FINDER? If you open HELP and enter 'displays' in the field in the upper right hand corner you will get a list of topics on setting up monitors. Specifically read 'Setting up multiple displays to show the same image' and 'Setting up multiple displays as an extended desktop'.
Ciao. -
Every time I try to back up my Macbook Pro with an external hard drive using Time Machine, I receive the error of "the disk does not have enough space". I have a 500GB external hard drive and only 120GB Macbook. It worked fine before the latest Maverick's update. Any help would be greatly appreciated.
My guess would be it has created an entirely new backup of your drive when you upgraded to Mavericks.
See Here: http://pondini.org/TM/1.html
And here: http://pondini.org/TM/9.html
Peruse the whole site. There is a lot of information there. -
In an eMail message, when I attempt to save two photos by clicking the 'Save 2 Images' link, not the 'Save Image' link, the images are not saved. (I use I I apologize for the late notice, butOS7 on IPhone5). Is this feature broken?
Please don't post the same question multiple times!
-
Im having problem setting up my Hotmail account, it used to work fine until few days ago. It says ive entered an incorrect username or password which i can sign in fine with them details if i use laptop or safari through the phone, Please help..
I Sugges you to log into your hotmail acc and go to security and password change bit, then you will see two-step verification.. turn that off and you will be able to set it up on your iPhone/iPad or even Mac.
Give your phone a restart before trying to set it up. Thanks -
Do I need to use a voltage adapter in the U.S. for my European Macbook?
do I need to use a voltage adapter in the U.S. for my European Macbook?
If using the Apple supplied charger unit, you will simply need a plug adapter for the US power system.
Maybe you are looking for
-
Sub tool in tool bar..
hi experts, i had developed alv report i want sub total button on tool bar,not in the field catlog.i am getting total button but not sub total.... thanks in advance
-
Any way to get rid of the drop shadow on Screen Captures in Leopard?
i do a fair bit of procedure documentation work, and so use screen captures quite a lot. Since upgrading to leopard the screen grab tool now puts a 77(ish) pixel white border and drop shadow around the screen captures, which might look trendy for som
-
Why canI open Firefox twice and my Norton toolbar only shows up on the second one
for some reason i can open firefox twice and did not know if this is normal. also my Norton 360 only shows up on the second one trying to find out if this is a something i need to correct and how to go about it
-
Hey! I've got a MacBook (about a year old), and when i'm trying to install adobe flash cs3 i get 2 errors, the installation completes but "Adobe Flash CS3 and Adobe Asset Services CS3" failed to install.. I've tried with the free trial and the full v
-
How to enable listbox dynamically in servlets
Hi everybody, Iam working on Servlets.Iam using two text boxes 1 for accept_qty and other for reject_qty.On entering on the rejected_qty I should be able to enable the rejected_reason which is a List box Is there any way to getr me out of this troubl