msgbartop
News, views, tips and tricks on Oracle and other fun stuff
msgbarbottom

15 Ways Oracle Can Make Java Better (and Improve Its Stance with Developers)

When Oracle acquired Sun, the database giant also acquired the Java technology that was Sun’s lifeblood. Oracle Chairman and CEO Larry Ellison called Java the most important technology Oracle has ever acquired. With ownership and leadership come responsibility. Java’s future is now in Oracle’s hands. This eWEEK slide show presents 15 ways Oracle can improve Java and boost its position in the Java community. More…

Filed in Links, Oracle with 0 Comments | Tags:


Securing Java In Oracle [PDF]

It is an interesting case of coincidental timing that within a week of the Oracle Sun deal being finalised by the EU1 that the Blackhat conference in DC should publish David Litchfield’s research for NGS Software 2, on how to escalate privilege using the Java functionality built into the Oracle DB 3. David’s research is not patched yet so would normally have only been made privy to the Administrators at Oracle’s SecAlert, but it has been made “Public” so it is now risk mitigation time.

Thankfully these Java related Oracle vulnerabilities have been discussed privately for a number of months beforehand, thus giving the Author time to fix them with a provably low risk of affecting other Oracle functionality.

In the absence of a patch from Oracle this paper provides information on how to fix the Java related vulnerabilities in both 10g and 11g which were detailed in David’s Blackhat presentation on February 2nd 2010.More…

Filed in Links, Oracle, Security with 0 Comments | Tags: , ,


Get image dimensions

Here is a quick and dirty (and easy) way to get the width and height of an image. It should work for both JPG and GIF files:

<cfobject type="JAVA" action="Create" name="tk" 
          class="java.awt.Toolkit">
</cfobject>
<cfobject type="JAVA" action="Create" name="img" 
          class="java.awt.Image">
</cfobject>
<cfscript>
img = tk.getDefaultToolkit().getImage("c:\img.gif");
width = img.getWidth();
height = img.getHeight();
</cfscript>
<cfoutput>#width#<br />#height#</cfoutput>

That’s the beauty of ColdFusion, you have all of the Java language available to you right out of the box. ColdFusion is after all a Java application behind the scene.

source

Filed in ColdFusion with 29 Comments | Tags: ,