Does apex support any server side JSP or PHP?

I have the folowing script that is used to save flash files as images. I am hoping there is some way to make these serverside calls from within apex.
<%@ page import="java.io.OutputStream"%>
<%@ page import="java.awt.Color"%>
<%@ page import="java.awt.Graphics"%>
<%@ page import="java.awt.image.BufferedImage"%>
<%@ page import="javax.imageio.ImageIO"%>
<%
     //Decoded data from charts.
     String data="";
     //Rows of color values.
     String[] rows;
     //Width and height of chart.
     int width=0;
     int height=0;
     //Default background color of the chart
     String bgcolor="";
     Color bgColor;
     //Get the width and height from form
     try{
          width = Integer.parseInt(request.getParameter("width"));
          height = Integer.parseInt(request.getParameter("height"));     
     catch(Exception e){
          //If the width and height have not been given, we cannot create the image.
          out.print("Image width/height not provided.");
          out.close();
     if(width==0 || height==0){
          //If the width and height are less than 1, we cannot create the image.
          out.print("Image width/height not provided.");
          out.close();
     //Get background color from request and set default
     bgcolor =request.getParameter("bgcolor");
     if (bgcolor==null || bgcolor=="" || bgcolor==null){
               bgcolor = "FFFFFF";
     //Convert background color to color object     
     bgColor = new Color(Integer.parseInt(bgcolor,16));
     //Get image data  from request
     data = request.getParameter("data");
     if(data==null){
          //If image data not provided.
          out.print("Image Data not supplied.");
          out.close();
     try{
          //Parse data
          rows = new String[height+1];
          rows = data.split(";");
          //Bitmap to store the chart.
          //Reference to graphics object - gr
          BufferedImage chart = new BufferedImage(width,height,BufferedImage.TYPE_3BYTE_BGR);
          Graphics gr = chart.createGraphics();
          gr.setColor(bgColor);
          gr.fillRect(0,0,width,height);     
          String c;
          int r;
          int ri = 0;
          for (int i=0; i<rows.length; i++){
               //Split individual pixels.               
               String[] pixels = rows.split(",");               
               //Set horizontal row index to 0
               ri = 0;
               for (int j=0; j<pixels.length; j++){                    
                    //Now, if it's not empty, we process it                    
                    //Split the color and repeat factor
                    String[] clrs = pixels[j].split("_");     
                    //Reference to color
                    c = clrs[0];
                    r = Integer.parseInt(clrs[1]);
                    //If color is not empty (i.e. not background pixel)
                    if (c!=null && c.length()>0 && c!=""){          
                         if (c.length()<6){
                              //If the hexadecimal code is less than 6 characters, pad with 0
                              StringBuffer str = new StringBuffer(c);
                              int strLength = str.length();
                              for ( int p = c.length()+1; p <= 6 ; p ++ ) {
                                        str.insert( 0, "0" );
                              //Assing the new padded string
                              c = str.toString();
                         for (int k=1; k<=r; k++){     
                              //Draw each pixel
                              gr.setColor(new Color(Integer.parseInt(c,16)));
                              gr.fillRect(ri, i,1,1);
                              //Increment horizontal row count
                              ri++;                              
                    }else{
                         //Just increment horizontal index
                         ri = ri + r;
          //Returns the image
          response.setContentType("image/jpeg");
          response.addHeader("Content-Disposition", "attachment; filename=\"FusionCharts.jpg\"");
          OutputStream os = response.getOutputStream();
          ImageIO.write(chart, "jpeg", os);
          os.close();
     }catch(Exception e){
          //IF the image data is mal-formatted.
          out.print("Image data is not in proper format.");
          out.close();
%>

NO, APEX does NOT support running jsp or PHP scripts..
Thank you,
Tony Miller
Webster, TX

Similar Messages

  • Transact-SQL debugger not working in SQL Server 2008: "...debugger does not support SQL Server 2005 or earlier..."

    I have recently installed SQL Server 2008. When I try to execute a query against an Access database, I receive this debugging error:
    "Unable to start Transact-SQL debugger. The Transact-SQL debugger does not support SQL Server 2005 or earlier versions of SQL Server. (SQLEditors)"
    Nor will the query execute; I get a transport-level error 0. Any thoughts?

    Hi Davidmhjr,
    >>Unable to start the Transact-SQL Debugger. The Transact-SQL Debugger does not support SQL Server 2005 or earlier versions of SQL Server. (SQLEditors).
    Have you tried to restart the server once you have installed SQL Server 2008? As Naomi N mentioned please check the version of SQL Server you are using.
    If you tried to connect to SQL Server 2005 from SQL Server 2008 SSMS, you would not be able to debug and get this error, it happens because T-SQL debugger includes both server-side and client-side components. The server-side debugger components are installed
    with each instance of the SQL Server 2008 Database Engine. The client-side components are installed when you install the SQL Server 2008 client-side tools.
    So it works with SQL Server 2008 only so far. Another way is you can triy to use SQL Server 2005 SSMS to connect to SQL Server 2005.
    More information about configuration requirement to run T-SQL debugger as below, please refer:
    There are no configuration requirements to run the Transact-SQL debugger when SQL Server Management Studio is running on the same computer as the instance of the SQL Server Database Engine. However, to run the Transact-SQL debugger when SQL Server Management
    Studio is running on a different computer from the instance of the Database Engine, you must enable program and port exceptions by using the Windows Firewall Control Panel application on both computers.
    On the computer that is running the instance of the Database Engine, in Windows Firewall, specify the following information:
    •Add TCP port 135 to the exceptions list.
    •Add the program sqlservr.exe to the exceptions list. By default, sqlservr.exe is installed in C:\Program Files\Microsoft SQL Server\MSSQL10.InstanceName\MSSQL\Binn, where InstanceName is MSSQLSERVER for the default instance, and the instance name for
    any named instance.
    •If the domain policy requires network communications to be done through IPsec, you must also add UDP port 4500 and UDP port 500 to the exception list.
    On the computer that is running SQL Server Management Studio, in Windows Firewall, specify the following information:
    •Add TCP port 135 to the exceptions list.
    •Add program ssms.exe (SQL Server Management Studio) to the exceptions list. By default, ssms.exe is installed in C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE.
    Hope it is helpful.
    Regards, Amber zhang

  • How many sessions does apex supports?

    Greetings !
    I had an requirement of creating web portal for a university having round about 100,000 students.
    Does apex supports 100,000 sessions or users to create and connecting almost the same time ?

    100,000 students won't do a request (leading to a database session) all at exactly the same time - although you will have peak hours.
    And APEX doesn't support the sessions, it is your webserver that should handle the number of requests. That's a matter of sizing/parametrizing your server.
    And the number of requests can be influenced by the way your APEX pages are build. For instance, a lot of Ajax features leads to more requests...
    And your database should be able to handle the number of sessions : a matter of sizing and setting parameters to the right level (and having physical enough memory).
    And the number of sessions a database can handle can be influenced by the way your program your SQL and PL/SQL. "Wrong" (as in : bad performing) code will be more noticable when more users execute that shitty piece of code.
    FYI : http://campusit.net/ uses APEX for a similar number of students. (Not affiliated in any way with CampusIT)

  • Biztalk Server 2013 does not support Windows Server 2012 R2

    is there any document or statement from MS that States "Biztalk Server 2013 does not support Windows Server 2012 R2"

    Hi Mohit,
    I haven't come across any document, but there is a blog from Microsoft about it.
    http://blogs.msdn.com/b/biztalknotes/archive/2013/10/29/biztalk-2013-compatibility-with-latest-platforms-of-microsoft.aspx
    Maheshkumar S Tiwari|User Page|Blog|BizTalk
    Server : How Map Works on Port Level

  • OAS server-side JSP debugging

    Hi All
    Is there a way to do the OAS server side JSP debugging using JDeveloper or other tools?
    ka
    null

    Hi
    The pdf file only mentioned 4 ways to do that but didn't include the details on how to do it. Appreciate if you could you tell me more precisely on how to do it with OAS?
    ka
    null

  • Is any server side cursor concept in jdbc

    hello friends,
    i am new programmer in java, i am doing one project in which
    i have to show the record in group (like user click one <1> link then
    he can view first 10 record if <2> then he can view 11 -20 record list) on
    same page.
    tech - jsp/servlet
    database - mysql
    and if u know any tutorial jsp and mysql connectivity please tell me.
    waiting 4 reply
    thanx
    nil4u

    You will have to implement the caching of the results on the server side and return the results as the user requests them. You can use the CachedRowSet on the server side to help you do this. There may be some utilities and tools available to help with this, try googling.

  • Server Side Includes and php

    I have php forms on a site update.  I want to use a server side include to keep the dynamic menu off the template.  The include works on the home page and other .shtm pages, but not on the php.  This can't be impossible.  What's the hint?  I can't (or can I) save the php as .shtm. and the thread will not allow any of the file types to be attached.  Ergo ... the link:http://shrhabitat.org/index09.shtm, the include: http://shrhabitat.org/includes/hfhshrmenu.lbw, the contact form: http://shrhabitat.org/contactus.php
    don Carlos de la Playa

    Alrighty then,  What I did was add both html and php include code to the template.  It seems to work without duplication.  For the experts in the crowd, will this blow up in my face someday?  As near as I can tell, I just need to ensure that any changes are made to both files which, after all, clones of one another.
    Ya'll have a fine Virginia day, now. Y'hear?
    don Carlos de la playa

  • Local SWF vs Server Side SWF and PHP

    I am having the strangest problem... I have a form in Flash
    where I use the sendAndLoad () function to communicate with a PHP
    file, that then sends an email with the loaded data. The action
    works fine when I run the SWF from my Mac to the server side PHP
    file using an absolute address. But it doesn't work when the SWF is
    on the server, again running an absolute path to the PHP file.
    Has anyone experienced this issue before? Is it a problem
    with security?
    Thanks,
    g

    Hi David
    If an online converter suits you, try Flabaco - www.flash-banner-converter.com
    It converts SWF to Video, generating three formats - MP4, OGG and WebM.
    Kayo

  • File Data Source:  does not support any other host except LOCALHOST?

    I am using US 1.0.3.
    This exercpt is from the OTN iLearn Subscribed course titled "Oracle9i UltraSearch New Features" on operating system file access:
    "The file protocol is used only for the machine that launches the crawler. You can not specify any other host for this kind of URL, except LOCALHOST."
    Does it mean that US 1.0.3 can not be used to search other file servers on the network? For example, we have US 1.0.3 installed on a server S1 which is on a network with other servers (e.g. S2). I want to use US to search files in the folder myDir on server S2. So I tried to create a file data source with this URL:
    file://\\s2\myDir\
    But I got this error:
    Invalid file protocol URL: file//\\s2\myDir\
    Hostname of the file URL "file://\\s2\myDir\ is not "localhost".
    My question:
    (1) Can US 1.0.3 search files on a different server than the one US is running on?
    (2) If so, how to specify the URL using the above example for it to work?
    (3) If not, how about the newer version of US, 9.2 or 9.02? Can they be used to search files on other network servers/drives?
    (4) If no to question (3), is there any plan to support this in the future version of US?
    My comment: Not able to search other servers really limits the userfulness of US. I really hope Oracle will consider adding this capability.
    Thanks!

    More on my previous questions:
    Since I posted my previous question, I have read on the 1.0.3 online help that we can define remote crawlers to crawl "on a remote machine other than the Oracle Ultra Search database". So I assume this is how to make US to search on other servers. In the online documentation it also includes the following paragraph on "Remote Crawler Profiles Page":
    "Use this page to view and edit remote crawler profiles. A remote crawler profile consists of all parameters needed to run the Ultra Search crawler on a remote machine other than the Oracle Ultra Search database. A remote crawler profile is identified by the hostname. The profile includes the cache, log, and mail directories that the remote crawler shares with the database machine. "
    The Remote Crawler Profiles Page, however, displays only remote crawlers already defined and the page seems to be used just for editing the porfiles of these defined remote crawlers.
    My questions:
    (1) How do I create the remote crawlers and defines the profiles in the first place?
    (2) Where can I find more documentation on remote crawlers?
    (3) Once the remote crawlers are set up, how do I specify the file URLs for each remote crawler?
    (4) With US9.02 or 9.2, does remote crawler work the same as in 1.0.3, or are there any enhancements?
    Thanks!

  • Is there is any server side control do this

    hi
    im asking for a php server control(no client side) that i can
    use it when i hide it won't rendered to the client and its space
    will disappeared and the surrounded controls will be merged as if
    there nothing was here
    this idea will help me in CMS
    any help
    thanks in advance.

    KeyboardReader is, I believe, a class that's distributed with some introductory textbook or the like, to make coding easier for newbies.
    So using it would make the code more non-standard. IMHO it doesn't really make the code any simpler either.
    IMHO the more complicated thing with your code is that you seem to intend to have a mapping from numeric values to actual items (e.g., apple).
    So I'm guessing in the final program you're going to have something like
    if (item == 1) {
      // it's an apple
    } else if (item == 2) {
      // it's a pear
    } else if // etc...I think it would be simpler to read the item as a string, and look up the string in a hashtable or the like to get, say, an Applet object or Pear object, or perhaps a ShoppingBasketItem object whose value is "applet", or whatever. Rather than having to hardcode a mapping from numbers to objects or costs in code.

  • MY IOS does not support EKU Server-Auth/Client-Auth

    Hello,
    I have a cisco router with  Software (C3725-ADVENTERPRISEK9-M), Version 12.4(15)T8.   im trying to set it up as my CA Server where I need to enroll my AnyConnect clients.
    But while I trying to configure my crypto pki server command,  I do not see   EKU Server-Auth or EKU Client-Auth   feature
    can any one tell why it does not have this feature ??

    it was added into 12.2T.    but for me it does not have this feature available .  any ideas ?

  • Does JavaDoc supports any language?

    Hello all,
    Im trying to find or to develop a tool that can generate automatic documentation for any source code language.
    Does for example, javadoc supports C++ or Pl/SQL?
    If i use the javadoc style comment on this files can i generate html files by simply invocating on command line: javadoc something.sql?
    If i use the pod of perl i can easely do something like this! But i was wondering if with javadoc i can do the same or if there is any tool who can generate documentation of any source code!?
    Thank you all
    Nuno

    Hi Nuno,
    I can't speak for other tools but I am sure that Javadoc only works with Java source. To generate documentation, it requires an internal representation of the source. The tool can only handle .java files.
    -Jamie

  • Does wsdp support any other webserver other than tomcat?

    I developed a small jsp sample using wsdp in tomcat webserver. It is working fine in tomcat webserver but when I tried to use the same jsp in other webservers like iPlanet and servletExec I'm getting a NullPointerException.
    The NullPointerException might be thrown because of two reasons either the Soap Response is not returned by the web service or the parser is not able to parse the Soap Response. In anyways if tomcat works, so why cant other webservers work.
    Does anyone tried using wsdp with iPlanet WebServer or anyother webservers?
    -Saravan

    I have used Weblogic 6.1 and it works fine..

  • Does Encoder support any way to burn in timecode?

    I currently use either Grinder or Compressor to burn in timecode for files that I share with my editing team.  I'm I missing a way to do this in Encoder CS6, or is this not supported?  Thanks in advance for any help offered!

    Currently you need to use Premiere Pro for this.  Would make a good feature request, though.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Does BC support any type of include?

    We currently have/use 4 templates, but that is about to grow. We also have several catalogs, but that too will grow.
    All of these templates use the exact same header (menu) and footer.
    Every time I need to make a change to the header/menu/footer, I must make it in all 4 templates, and their stylesheets.
    Now we want to have a different template for each catalog in our store.
    I know I can make and assign different templates, one for each catalog, but that presents another issue. Since I currently have 4 templates, and each has it's own stylesheet, when I make a change to the header or footer, which is the same on all 4 templates, I must make that change in all 4 templates and all 4 stylesheets. That's a lot of work. If I have multiple templates for multiple catalogs, that work doubles for each new template.
    So if I have 20 catalogs and 20 templates, and need to change the menu in the header, then I have to make those changes in 40 places, 20 templates and 20 style sheets.
    Is there any way in BC to use something similar to PHP Includes? Or what about using Dreamweaver Library Objects? Is that possible or compatible?
    Thank you in advance.

    Content Holders.
    http://helpx.adobe.com/business-catalyst/using/create-insert-reusable-content.html

Maybe you are looking for