Display a PNG-File embedded in a webpage on CIPC/796x
I would like to display a PNG-file embedded in a webpage on a CIPC or 797x. I know how to display one with <CiscoIPPhoneImageFile>, but this needs to be a directly adressable URL. Currently I grab the Image from the webpage by Inet1.GetURL, turn it into greyscale and resize it using CIPImage to a 132x65 image. This is usable on all the 794x/6x in our network. Using 797x and CIPC it would be nice to display the graphic in its full color and resolution. I ran into the SaveJPG and SavePNG functions of CIPImage, but did not find any detailed description on how to use these. I could then dump the image in a location everybody could access on the internal webserver. As a sideeffect this would reduce webtraffic to the original web-source as well.
Re: Display a PNG-File embedded in a webpage on CIPC/796x
yes, I know how to display a PNG file on the phone or the background images. My question is how to save a dynamic graphic in a web-page onto disk with the SavePNG function of CIPImage. Then I can display it on the phone. Here is a sample snippet of my code which works with all 79xx phones, but this needs to scale down to 132x65 but I would like to modify this to display the better resolution PNG file on the CIPC/797x phone:
var serverIP = Request.ServerVariables("LOCAL_ADDR");
var d = new Date();
var hour = d.getHours();
var chartarray = new Array();
var Inet1 = new ActiveXObject("CiscoURLProxy.URLGrabber"); // Create the proxy object
var rawdata = Inet1.GetURL("http://ichart.yahoo.com/t?s="+tickersym, 1); // Get the gif from Yahoo... Note the "1" as the second parameter tells the component ByteArray. Its in the proxy doc...
var cip = new ActiveXObject("CIPIMAGE.ImageProcessor.1"); // Create my cip object
cip.LoadPNGFromBuffer(rawdata); // Load the byte array
var filnam = "c:\\ciscoipservices\\asp\\t.png" // Place to save graphic
cip.SavePNG(filnam); // <-- This is the part which I don't know how to make it work !!!!
cip.RGBToPalette(); // I don't know if the source is RGB or a palette so I to this anyway. It doesn't hurt...
cip.ColorToGray(); // reduce the colors to grayscale
cip.ReducePaletteColors(4); // reduce the palette to 4 colors. (2-bit)
var rawchartdata = cip.SaveCIPDataToBuffer();
Response.Buffer = true;
Response.ContentType = "text/xml"; // Don't forget the xml mime type header we all love...
You have reached the Cisco Logistics Support Center.. To Check Status of
your RMA, visit Product Returns & Replacements (RMA). Need help? Contact
us by Phone or Email. North Americas Phone: 1800 553 2447 Option 4
Email: firstname.lastname@example.org Europe Phone: +3...
The short answer is that you don't.... That isn't entirely true while at
the same time it kind of is, but for the most part you don't configure
the softkeys. You enable or disable them via TCL. Here is the long
answer. Be sure to read the whole thing or e...
Topology: IP Phone > Switches > Microsoft NPS setup to forward 802.1x
proxy to > ISE 2.1 patch 3 Authentication: EAP-TLS using Cisco MIC SANs
Phone Models 802.1X support? 802.1x flavor Addtl Comment EAP-MD5 EAP-TLS
Cisco 3905 Y Y N Cisco 6911 Y Y N Cisco ...