Displaying an image in byte[] type

hello
I want to display byte data . But I was not able to do that.
here is my code:
~~~~~~~~~~~
byte[] imgByt2 = paintData.imgBytes; // **** I want to display this data
BufferedImage img = new BufferedImage(paintData.getWidth(),
paintData.getHeight(), BufferedImage.TYPE_INT_RGB);
Graphics2D graphics2D = img.createGraphics();
//graphics2D.drawChars(new String("DOGA").toCharArray(),0,9,40,15);
ImageIO.write(img, "jpeg", out);
~~~~~~~~~~~~~~~~~~~
what can I do to display byte data ?
regards

CeciNEstPasUnProgrammeur wrote:
Oh yes, I see - that explains exactly the type of image data... oh wait. No, it doesn't.And don't forget that it's embedded in a table of an un-named database... whatever that means.

Similar Messages

  • How to display an image of BLOB type from a Table in an OAF page?

    Hi,
    My requirement is that in the database table images gets saved of type BLOB and i have to display these images in my OAF page .I looked in OA developers guide and followed the instruction but unable to achieve my requirement .As per the developers guide "I created an item of type messageDownload ,in the viewattribute i set the view attribute FileData and File View Attribute FileContentType the table used is FND_LOBS" but i couldn't achieve anything.
    Please help me and if possible give me exact way to achieve it as i am new to this framework.
    Thanks in advance

    Map the database table columns to the Table region columns. For image column set the item style as "Messagedownload". Set the View Instance (VO) , View Attibute Name (image name) and View Attribute Data (blob col).

  • To display an image in byte format in JSP

    hai gurus,
    I am using JSPDynpage.  My response from the websevice is retrieving image in byte format.
    so I thought to display like this in JSP
    String contentType = "image/jpeg";
                   res.setContentType(contentType);
                   //ServletOutputStream out = request.getServletResponse(true).getOutputStream();
                   res.setContentLength(data.length);
                   ServletOutputStream ostream = res.getOutputStream();
                   ostream.write(data);
                   ostream.flush();
    But it doesn't work
    It says that request object is predefined in the doContent.
    above code works fine the the abstractportalcomponent.
    let me know about this
    thanks
    venkata

    Hi, mmaybe you have more luck if you post it in the EP Content Developer or Java deloper forums.
    regards
    Marcel

  • Display image from byte array

    Hello Everybody,
    I need to display an image given in a byte array, how can I show this image in a JFrame?
    1. I tryied saving the image in a .jpg file,
         File file1 = new File("Path to my destination image");2. then I use a FileOutputStream to save the image in the path:
            FileOutputStream fos1 = new FileOutputStream(docu);
            fos1.write(ImageInbyteArray);
            fos1.close();3. Once I have the image in a file I'm trying to load it using a JButton, but the JButton doesn't display the image. I think that for some unknown (at least for me ;-) reason the file isn't still available to be used in the ImageIcon, this is my code:
            imgIconDocu = new ImageIcon("Path to my destination image");
            jBtnDocu = new JButton(imgIconDocu);What's wrong here?
    Thanks a lot

    Does the byte array contain a JPEG image? Where did
    you get the contents of the byte array?yes the array contains the JPEG image, I have a database in PostgreSQL, and the images are stored in blob in the database. I have to call a service in the server and in return it gives me the 3 images as byte arrays, that's the reason I only have the byte arrays. so I tryed saving the images as jpeg files in my hard disk to show them, but it appears that they are not available to show them in Swing after saving them. I can only show the images if I close my application and start it again :-(
    I tryed flushing and closing the FileOutputStream after the writting process (fos.write(bytearrayImage);
    fos.flush();
    fos.close();)
    Y also tryed:
    fos.write(bytearrayImage);
    fos.close();
    fos.flush();But it doesn't work either :-(
    What do you recommend me?.
    Thanks a lot,
    Johnny G L

  • Displaying an image in large object type

    hello
    I am getting large object ( image) from a database.
    like this way:
    obj.read(buf, 0, obj.size());
    I was not able to this image by OutputStream object
    could you give me a hint ?
    regards
    Ahmet Temiz

    orkun wrote:
    InputStream is=rs.getBinaryStream(1); So you get an InputStream to read the image from.
    byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];And you create a byte array which contains a bunch of zeros.
    for (int length; (length = is.read(buffer)) != -1;) {
    out.write(buffer, 0, length); # out is in OutputStream
    }And then you ignore the InputStream where the image was, and copy all the zeroes from
    the byte array to the output.
    that did not display any image.
    what may the problem be ?Do you need more explanation?

  • Display an image from an array of bytes

    Hi, I'm trying to display an image from the raw pixel values. lets say i read a bmp file to an array, chuk the header off and want to display the pixel. How can I do this? I don't want any file formats, just want to display the pixels and creat the image. Is this possible?
    Many thanks,
    H

    Thanks for the reply. I had a look at MemoryImageSource and other classes that relates to it. I wrote the example given, but it doesn't identify createImage(). I've implemented ImageProducer, but still complains. Have you any idea why? Thanks for your help.
    H

  • I want to display BLOB image in JSP Using  html tags IMG src=

    GoodAfternoon Sir/Madom
    I Have got the image from oracle database but want to display BLOB image using <IMG src="" > Html tags in JSP page . If it is possible than please give some ideas or
    Send me sample codes for display image.
    This code is ok and working no problem here Please send me code How to display using html tag from oracle in JSP page.
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="javax.swing.ImageIcon;" %>
          <%
            out.print("hiiiiiii") ;
                // declare a connection by using Connection interface
                Connection connection = null;
                /* Create string of connection url within specified format with machine
                   name, port number and database name. Here machine name id localhost
                   and database name is student. */
                String connectionURL = "jdbc:oracle:thin:@localhost:1521:orcl";
                /*declare a resultSet that works as a table resulted by execute a specified
                   sql query. */
                ResultSet rs = null;
                // Declare statement.
                PreparedStatement psmnt = null;
                  // declare InputStream object to store binary stream of given image.
                   InputStream sImage;
                try {
                    // Load JDBC driver "com.mysql.jdbc.Driver"
                    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
                        /* Create a connection by using getConnection() method that takes
                        parameters of string type connection url, user name and password to
                        connect to database. */
                    connection = DriverManager.getConnection(connectionURL, "scott", "root");
                        /* prepareStatement() is used for create statement object that is
                    used for sending sql statements to the specified database. */
                    psmnt = connection.prepareStatement("SELECT image FROM img WHERE id = ?");
                    psmnt.setString(1, "10");
                    rs = psmnt.executeQuery();
                    if(rs.next()) {
                          byte[] bytearray = new byte[1048576];
                          int size=0;
                          sImage = rs.getBinaryStream(1);
                        //response.reset();
                          response.setContentType("image/jpeg");
                          while((size=sImage.read(bytearray))!= -1 ){
                response.getOutputStream().write(bytearray,0,size);
                catch(Exception ex){
                        out.println("error :"+ex);
               finally {
                    // close all the connections.
                    rs.close();
                    psmnt.close();
                    connection.close();
         %>
         Thanks

    I have done exactly that in one of my applications.
    I have extracted the image from the database as a byte array, and displayed it using a servlet.
    Here is the method in the servlet which does the displaying:
    (since I'm writing one byte at a time, it's probably not terribly efficient but it works)
         private void sendImage(byte[] bytes, HttpServletRequest request, HttpServletResponse response) throws IOException {
              ServletOutputStream sout = response.getOutputStream();
              for(int n = 0; n < bytes.length; n++) {
                   sout.write(bytes[n]);
              sout.flush();
              sout.close();
         }Then in my JSP, I use this:
    <img src="/path-to-servlet/image.jpg"/>
    The name of the image to display is in the URL as well as the path to the servlet. The servlet will therefore need to extract the image name from the url and call the database.

  • Displaying an image in jsp / servlet

    Hi, I am trying to display an image from database to be displayed in the servlet
    following is my code
    package image;
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import java.sql.*;
    import java.awt.*;
    import java.awt.image.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.PrintWriter;
    import com.sun.image.codec.jpeg.*;
    public class BlobImageServlet extends HttpServlet
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    String idStr="";
    String buffString="";
    InputStream is;
    byte[] buffer=null;
    Connection conn = null;
    //Statement stmt =null;
    CallableStatement stmt;
    ResultSet rs;
    //BlobStudentInfo bInfo = null;
    //Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
    //idStr = (String)request.getParameter("id");
    //bInfo = (BlobStudentInfo)request.getAttribute("binfo");
    try {
    //stmt = conn.getConn().createStatement();
         Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
         conn = DriverManager.getConnection("jdbc:sybase:Tds:dbserv.com.xyz.edu:4444/mydb","user","pwd");
         stmt = conn.prepareCall("{call dbo.getimage(?)}");
         stmt.setInt(1,10);
         stmt.execute();
    stmt.getMoreResults();
    rs = (ResultSet) stmt.getResultSet();
    while (!rs.isFirst()) {
    rs.next();
    buffer = rs.getBytes("image");
    // rs = stmt.executeQuery("select image from photo where indexing =10");
    if (rs.equals(null)){
         System.out.println("Resultset is not null");
    }else System.out.println("RS is not null");
    //while (rs.next());{
         // buffer = rs.getBytes("image");
    stmt.close();
    rs.close();
    //conn.closeConnection();
    } catch(SQLException sqe){
    while (sqe != null) {
    System.out.println("BlobImageServlet: SQLException: " + sqe.getMessage());
    //e.printStackTrace();
    sqe = sqe.getNextException();
    } catch (Exception e) {
    System.out.println("BlobImageServlet: Exception !!");
    e.printStackTrace();
    //buffer = bInfo.getHeadshot();
    JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(new ByteArrayInputStream(buffer));
    BufferedImage image = decoder.decodeAsBufferedImage() ;
    response.setContentType("image/jpeg");
    // Send back image
    ServletOutputStream sos = response.getOutputStream();
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
    encoder.encode(image); // writes the image to browser
    } //doPost closed
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException
    doPost(request, response);
    and the corresponding procedure is
    create procedure dbo.getimage
    @indexing int
    as
    select image from dbo.photo where indexing = @indexing
    Whenver I try to run the servlet as http://localhost:8080/Test/BlobImageServlet
    I get null pointer exception
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         java.io.ByteArrayInputStream.<init>(ByteArrayInputStream.java:89)
         image.BlobImageServlet.doPost(BlobImageServlet.java:72)
         image.BlobImageServlet.doGet(BlobImageServlet.java:86)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
    Please let me know if you have any questions.

    When we see the following code
    response.setContentType("image/jpeg");
    we can only view the images from database that were stored of jpeg but not of gif.
    Like gif images stored in binary format doesnt allow us to view back the images instead give some exceptions like
    com.sun.image.codec.jpeg.ImageFormatException: Not a JPEG file: starts with 0x42 0x4d
         sun.awt.image.codec.JPEGImageDecoderImpl.readJPEGStream(Native Method)
         sun.awt.image.codec.JPEGImageDecoderImpl.decodeAsBufferedImage(JPEGImageDecoderImpl.java:210)
         image.BlobImageServlet.doPost(BlobImageServlet.java:67)
         image.BlobImageServlet.doGet(BlobImageServlet.java:80)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    If I have to veiw a gif image from the database it doesnt allow me to do so giving jpeg exceptions.
    I have put a javascript asking the uploaders to load only jpeg files.
    but i would be happy if it was generic. Is there any solution.
    Regards
    Sandeep.

  • Display BLOB Image in a JSP page.

    Hi, Is there any easy way to display a Image in the browser using a JSP and an Oracle BLOB. I would like any code examples that anyone can provide me. I would like as many ways to do this as possible.
    Thanks Brian

    You can do it in 2 ways:
    1. Get the BLOB from the DB and then write it into the local harddisk where the Web Server is located and then give the path in the <IMG SRC> Tag.
    2. In the JSP, when you specify a IMG Tag
    <IMG SRC='FileDisplayServlet?hdImgName=new.gif'>
    This SRC is pointing to a Servlet. The Servlet will read the Query String and then go hit the DB, get the BLOB Content and then convert into a byte array. Now the servlet will change its content type to image or gif. Then it will write the content in the out stream.
    Hope this helps.
    Thanks and regards,
    Pazhanikanthan. P

  • Howto dispay image from binary type

    Hi, I have sucesfully displayed picture from context of type "Resource" to an Image child with binded to it context of type String. I use to it belov listed piece of code and it works fine:
    FileResource = value attribute if type com.sap....Resource
    Image = value attribut of type String binded to Image child
    if (element.getFileResource() != null) {
    element.setImage(element.getFileResource().getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal()));
    Now I have encountered closely related problem (there is a smile with coding an upload as well but I was able to upload "something" != null.). I have a picture in Binary type (uploaded from mysql db). How do I display it in an Image child with String type context (you can bind other types of context to Image child than String)? Below code how I upload the image:
    ResultSet rs = stUpdate2.executeQuery("SELECT * FROM photo");
         while(rs.next())
              byte[] b=rs.getBytes(1);
    IWDResource res=WDResourceFactory.createCachedResource(b,"Image4",WDWebResourceType.JPG_IMAGE);                    IPrivateMyProjectView.IImageTableElement imageEle=wdContext.createImageTableElement();
         imageEle.setImage3(b); //this is probably wrong, I tried bot "setImage3(res)" but I get error
    //The method setImage3(byte[]) in the type IPrivateKartaPolakaView.IImageTableElement is not applicable for //the arguments (IWDResource)
    //or
    //imageEle.setImage3( res.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal()));
    //               wdContext.nodeImageTable() .addElement(imageEle );
    //how it should be but that provides me "The method setImage3(byte[]) in the type //IPrivateMyProjectView.IImageTableElement is not applicable for the arguments (String)" error
    wdContext.nodeImageTable().addElement(imageEle );
    ImageTable = Value Node
    Image3 = value attribute of type binary
    Please advice. Regards, Balmer.

    Hi,
    First of all, make a string context attribute, and bind ur image UI element's source name to it.
    Then write the following code:
    IWDResource l_resource = WDResourceFactory.createCachedResource(<variable of type byte[] whihch has the binary type>,"MyImage",WDWebResourceType.JPG_IMAGE);
    String l_image = l_resource.getUrl(WDFileDownloadBehaviour.OPEN_INPLACE.ordinal());
    now set this l_image to the source context attribute.
    check it out and let me know if it works.....
    Regards,
    Gita

  • Displaying an image created at runtime.

    I am creating an image at run time (a bar code). How do I display this?
    To test a static image I placed the bar code image in the src/mimes/components/packages directory, then compiled that application and it worked perfectly.
    I then created the bar code image at run time and wrote it to the same src/mimes/components/packages directory as above. The file was succesfully placed there, but the application does not display the image. If the application is then recompiled with a a hard coded value of the previous bar code in the getImageImageSource method it works.
    I'm guessing that the run time repository for images is different to the design time one; is this is the case where should I be writing the image file and what should I return from the getImageImageSource method?
    Nigel

    Hallo Nigel,
    you can apply the Web Dynpro Binary Cache. Just store URL of the cached resource within a context attribute and bind the image url to this attribute.
    Implement the following coding:
    //@@begin javadoc:wdDoInit()
      /** Hook method called to initialize controller. */
      //@@end
      public void wdDoInit()
        //@@begin wdDoInit()
        wdContext.currentContextElement().setImgVisibility(WDVisibility.NONE);
        // Modify datatype, propare datatype for modifications done by the runtime
        wdContext.getNodeInfo().getAttribute("File").getModifiableSimpleType();
        //@@end
      //@@begin javadoc:onActionUpload(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onActionUpload(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionUpload(ServerEvent)
        IWDCachedWebResource cachedResource = null;
        String imgUrl = null;
        WDWebResourceType type =
          ((IWDModifiableBinaryType) wdContext.getNodeInfo().getAttribute("File").getModifiableSimpleType())
            .getMimeType();
        byte[] file = wdContext.currentContextElement().getFile();
        if (file != null) {
          cachedResource = WDWebResource.getWebResource(file, type);
          try {
            imgUrl = cachedResource.getURL();
            wdContext.currentContextElement().setUrl(imgUrl);
            wdContext.currentContextElement().setImgVisibility(WDVisibility.VISIBLE);
          } catch (WDURLException e) {
            wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), true);
        //@@end
    Regards, Bertram

  • Displaying Tiff Image on browser

    Hi friends ,
    I want to display tiff image on browser . For that i have written one servlet witch will desplay tiff image on browser
    Here i am sending my code snippets for servlet.
    Here file is source file which i want to display.
    FileSeekableStream ss = new FileSeekableStream(file);
              ImageDecoder tiffDecoder= ImageCodec.createImageDecoder("tiff", ss, null);;
              p = tiffDecoder.getNumPages();
              for(int x=0;x<p;x++){
              RenderedImage tiffPage = tiffDecoder.decodeAsRenderedImage(x);
              ByteArrayOutputStream stream = new ByteArrayOutputStream();
         TIFFEncodeParam tiffOptions = new TIFFEncodeParam();
         // You may want to set compression or tile attributes on the     EncodeParam here
         RenderedOp l_return = JAI.create("encode", tiffPage, stream,"TIFF", tiffOptions);
         bt = stream.toByteArray();
    then writing this byte array(bt)
    OutputStream out;
    out.write(bt);
    and responce .setContentType("image/tiff");
    i also want to know whether mime type image/tiff is supported or not in servlet.
    When i run servlet i am getting File Downloading dialog box.
    also when i download image file it's size is very large than original.
    Plz correct my code.It's verry urgent.
    Thanks in Advance

    hi, could you post the solution?
    I'm looking forward to know the solution.
    Thanks

  • How to display an image, which is stored in a database?

    Hi All,
    I would like to display an image with Web Dynpro.
    I already know how to display an image which is stored in the path src/mimes/Components/...
    But does anybody knows, how to display an image which is stored in a database (e.g. MaxDB)as a datatype of binary?
    Thanks in advance!
    Regards,
    Silvia

    Hallo John,
    yes, you can use the Image UI element.
    Further you have to create a String for the URL. Implement like as follows:
    IWDCachedWebResource cachedResource = null;
    String imgUrl = null;
    WDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateXYView.IXYElement.PIC_DB);
    IWDModifiableBinaryType binaryType =
                   (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
    binaryType.setMimeType(WDWebResourceType.JPG_IMAGE);//Example *.jpg
    WDWebResourceType type = binaryType.getMimeType();
    byte[] file = wdContext.currentXYElement().getPicDB();
    if (file != null)
    cachedResource = WDWebResource.getWebResource(file, type);
    try
    imgUrl = cachedResource.getURL();
    catch (WDURLException e)
    IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
                        msgMgr.reportException(e.getLocalizedMessage(), true);
    I hope it will help you.
    Regards,
    Silvia

  • Problem with displaying BLOB images on JSP page using a servlet

    hi. I have a big problem with displaying BLOB images using JSP. I have a servlet that connects to the oracle database, gets a BLOB image , reads it, and then displays it using a BinaryStream. The problem is , this works only when i directly call that servlet, that is http://localhost:8080/ImageServlet. It doesn't work when i try to use that servlet to display my image on my JSP page (my JSP page displays only a broken-image icon ) I tried several coding approaches with my servlet (used both Blob and BLOB objects), and they work just fine as long as i display images explicitly using only the servlet.
    Here's what i use : ORACLE 10g XE , Eclipse 3.1.2, Tomcat 5.5.16 , JDK 1.5
    here is one of my image servlet's working versions (the essential part of it) :
                   BLOB blob=null;
              rset=st.executeQuery("SELECT * FROM IMAGES WHERE ID=1");
              while (rset.next())
                   blob=((OracleResultSet)rset).getBLOB(2);
              response.reset();
              response.setContentType("image/jpeg");
              response.addHeader("Content-Disposition","filename=42.jpeg");
                    ServletOutputStream ostr=response.getOutputStream();
                   InputStream istr=blob.getBinaryStream(1L);
                    int size=blob.getBufferSize();
              int len=-1;
                    byte[] buff = new byte[size];
                         while ((len=istr.read( buff ))!=-1 ) {
                   ostr.write(buff,0,len);
             response.flushBuffer();
             ostr.close(); and my JSP page code :
    <img src="/ImageServlet" border="0"  > If you could just tell me what i'm doing wrong here , or if you could show me your own solutions to that problem , i would be very greatful ,cos i'm realy stuck here , and i'm rather pressed for time too. Hope someone can help.

    I turns out that it wasn't that big of a problem after all. All i had to do was to take the above code and place it into another JSP page instead of into a servlet like i did before. Then i just used that page as a source for my IMG tag in my first JSP. It works perfectly well. Why this doesn't work for servlets i still don't know, but it's not a problem form me anymore . Ofcourse if someone knows the answer , go ahead and write. I would still appriceatte it.
    here's the magic tag : <img src="ImageJSP.jsp" border="0"  > enjoy : )

  • Display BLOB (image) column in (interactive) report

    Hi,
    I have a field called "picture" in my table "details" which is of type BLOB. i also have a field for "MIMETYPE" and "filename"
    i additionally have a "name" and "description" columns which i need to display along with the picture as columns in a report (preferably interactive).
    i have also modified the BLOB display format as per
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    what i am missing is the correct query. if possible, i would like to control the size of the picture rendered within the report like say 40*50.
    I have also referred to the thread
    APEX 3.1 Display BLOB Image
    But i don't know how to place the
    dbms_lob.getlength("BLOB_CONTENT") as "BLOB_CONTENT"
    in my query.
    The above also makes the report column as of type "number". is this expected?
    Any help would be much appreciated.
    Regards,
    Ramakrishnan

    You haven't actually said what the problem is?
    >
    I have a field called "picture" in my table "details" which is of type BLOB. i also have a field for "MIMETYPE" and "filename"
    i additionally have a "name" and "description" columns which i need to display along with the picture as columns in a report (preferably interactive).
    i have also modified the BLOB display format as per
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    what i am missing is the correct query.
    I have also referred to the thread
    APEX 3.1 Display BLOB Image
    But i don't know how to place the
    dbms_lob.getlength("BLOB_CONTENT") as "BLOB_CONTENT"
    >
    Something like:
    select
              name
            , description
            , dbms_lob.getlength(picture) picture
    from
              details
    if possible, i would like to control the size of the picture rendered within the report like say 40*50.For images close to this size it's easy to do this for declarative BLOB images in interactive reports using CSS. Add a style sheet with:
    .apexir_WORKSHEET_DATA td[headers="PICTURE"] img {
      display: block;
      width: 40px;
      border: 1px solid #999;
      padding: 4px;
      background: #f6f6f6;
    }where the <tt>PICTURE</tt> value in the attribute selector is the table header ID of the image column. Setting only one dimension (in this case the width) scales the image with the correct aspect ratio. (The border, padding and background properties are just eye candy...)
    However, scaling large images in the browser this way is a huge waste of bandwidth and produces poorer quality images than creating proper scaled down versions using image tools. For improved performance and image quality, and where you require image-specific scaling you can use the database ORDImage object to produce thumbnail and preview versions automatically, as described in this blog post.

Maybe you are looking for

  • Session by session application permissions??

    Can ARD be used to control which applications can be opened on clicnt computers? This would be very helful to the education environment. Especially in situations where many different teachers use different apps to teacha variety of classes. -Tim

  • Viewing iWeb site in OS9 browser - anyone done it successfully?

    Hi folks - I made an iWeb site yesterday and although it looks great on my OS X system under Firefox and Safari, my husband running OS 9.2.1 on a G4/733 cannot view the site successfully at all. In IE 5.0 it loaded up OK but the menu links at the top

  • HT1752 how do i determine what kind of computer i own?

    I need to simply find out what kind of computer I bought in 2009. How do I do that?

  • Error When Starting VM Failed to create memory contents file

    Hi, I"m experiencing issue with a VM that has previsoulsy been snapshotted. The snap shots have been since deleted via the Hyper V Manager. The snap shots were not applied to the VM. Also no .avhd files have been deleted via Windows Explorer When I s

  • Using custom FLV Skins

    I recently created a custom flash player in Adobe Flash CS4, but when I try to use that skin in Dreamweaver it doesn't show up as an option.  What do I have to do to make so I can use my customly made flash player in Dreameaver?