Using .jpg images in a MS Access BLOB OLE field

Post Author: bsorensen
CA Forum: General
This is condensed from page 124 of the CR v8.5 User's Guide:
"BLOB (Binary Large Object) fieldsIn general, Crystal Reports allows you to access BLOB fields containing: JPEG, TIFF, or PNG images. In addition, if your data resides in a Microsoft Access database, then Crystal Reports enables you to report on BLOB fields containing OLE 1 and 2 objects and metafiles."
I have a report that prints one page for each record. I want to include an image that is unique to each record. The above says I should be able to use .jpg's; however, when I do, each page displays only the path to the image and not the image itself.
I defined an OLE object field in my Access 03 database, performed an insert object and pointed the path to each file. I use CR v8.5 Standard.
When I change the images to bitmap (.bmp files), it does display the images; however, the resolution is inferior to .jpg.
Any Ideas?

You can try ps.setDate, which takes an instance of java.sql.date.
or ps.setTimestamp to include the time.
Edited by: fgb on 06-Feb-2010 13:00

Similar Messages

  • IPad wont show .jpg images correctly

    My new iPad wont show .jpg images correctly. They all get a yellow/blue filter almost like a negative photo. This is in Safari, Maps,Youtube and every App using .jpg images. Gifs, and png, viewing video etc is fine. Also the home screen background/wallpaper gets this problem.
    BUT saved .jpgs from Safari strangely enough look fine in Photos. (Thumbnails stil look bad though.)
    I thought it had to be a software issue, but reseting my device with newest OS (3.2) is not helping.
    Any others with the same problem?

    Thanks for your reply. I have not created any JPGs, or transfered them to the iPad. I just surf with Safari and all .jpg's are getting this strange colors. When starting Maps the satellite mode gets wrong colors. The background on the home screen are the ones that came with the iPad. Strange thing is that when restoring it with software reset, the background is ok. When choosing a new (even choosing the same one) they get wrong colors when going to the home screen. (They all look good when choosing)
    It looks like the iPad is not doing the final steps on rendering the images. (And also have a short blink when being displayed) However as I said, all images look good when viewing fullscreen in the Photos App. Even the ones saved from Safari which looked bad in Safari.

  • Reports using JPG and BLOB RenderOp failures

    I am getting RenderOp failures using BLOB columns to store JPG images in reports. Reports seems only to work if the data is in TIFF format (massive storage req.) I have converted to LONG RAW to store the JPG images and the same report functions perfectly. I am on 10.1 release 2. and the reports are 10.1.0.2 (I use the designer as well). Is there some special magic to get reports to do as it claims (displays all formats for JPG). I am runnng paper layout only via the rwservlet - this all seems fine. I am using webUtil to replace the old calls (read_image_file). If I convert to TIFF - the 12K images take 500K in the database (but they do work) - if it is JPEG - they cannot be displayed, despite what the documentation says (I will use LONG RAW - but I would rather use the BLOB for support reasons). Anyone know the magic?

    Hello,
    Check if your JPG images are encoded with the "Progressive Encoding".
    This method is not supported by Reports. Test to save your JPG images with the "Standard Encoding".
    Regards

  • Which Datatype I have to use for Images in MS-Access Database.

    Hi Friends...
    I am Atif. I have stucked in a query. Please suggest me. 
    Which Datatype I have to use for Images in MS-Access Database ?
    Thanks in advance..
    Regards
    Atif

    Depends upon whether you are referring to a variable or the data type of the column in which to store the data. For a table you should use an OLE Object. For example, you could use something like the following to store an image into a Access table from a
    PictureBox (sans OLE header):
    Dim AccessConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" & _
    "Data Source=C:\Test Files\db1 XP.mdb")
    Dim AccessCommand As New OleDbCommand("INSERT INTO BlobTable (ID, BLOB) " & _
    "VALUES (@ID, @BLOBData)", AccessConnection)
    Dim PictureMemoryStream As MemoryStream = New MemoryStream()
    Form3.PictureBox1.Image.Save(PictureMemoryStream, System.Drawing.Imaging.ImageFormat.Jpeg)
    Dim BLOBData(PictureMemoryStream.Length - 1) As Byte
    PictureMemoryStream.Position = 0
    PictureMemoryStream.Read(BLOBData, 0, PictureMemoryStream.Length)
    AccessCommand.Parameters.AddWithValue("ID", 7)
    AccessCommand.Parameters.Add("BLOBData", OleDbType.LongVarBinary, BLOBData.Length, DataRowVersion.Current).Value = BLOBData
    AccessConnection.Open()
    AccessCommand.ExecuteNonQuery()
    AccessConnection.Close()
    Paul ~~~~ Microsoft MVP (Visual Basic)

  • Premier pro cs6: how to use 400 jpg images to make a movie?

    I want to use about 400 jpg images to make a movie.  is there a way to add them to a sequence in a random order?

    I'm not aware of a randomize feature either, but here is a suggested workflow that may make it easier than shuffling 400 images around in Premiere:
    Open your images in Bridge
    Move them around to meet your random requirement
    Highlight all images (Ctrl-A)
    Right-click / batch rename and add a sequence number to the front of each name (I like to add a text "_" too) and copy the resulting set of images to an empty directory
    Import the whole directory into Premiere
    Automate to timeline
    I used to use Liquid and it had a wonderful freestyle way to pre-order your clips or images prior to dumping them onto your timeline, and the above workflow is how I have come to approximate the same.
    Regards,
    Jim

  • Storing image file in ms-access using jdbc

    Dear all,
    When i try to store a image file in MS-Access, I try it using OLE Object type in ms-access and object type in Java but i got following exception
    java.sql.SQLException: SQL Exception : Unknown SQL Type for PreparedStatement.setObject (SQL Type=1111
    So anyone please guide me that how to store an image file into ms-access database using the jdbc.
    ishan

    Do you want to store the text from the file? or the actual file?
    If you want to store large amounts of raw text, then you can use the MEMO type, but it will only store up to 64kb (65,535 characters). If you want to store the actual file, you'll have to use a field of OLE type.
    Does this answer your question? or were you asking something else?

  • How to use Sprout to do vector image tracing of jpg images using Adobe Illustrator or Canvas?

    How can you project jpg images on the touch screen and trace from them into a vector draw program such as Adobe Illustrator or Canvas?  Can one do such tracing with the magnetic pen on the touch pad.  Can one use the magnetic pen on the touch pad much like a mouse in such programs?
    In general how well can one use Sprout with programs like Canvas and Illustrator? 

    I believe if you export it to wmf or emf you will have a Vector file that can be used in word or powerpoint and can be placed in other programs as can ai files which can be placed in word or powerpoint documents as vector files.
    Flash (swf) is another way of saving it and it is also vector.
    However even though you say you will never have use for Illustrator which is what I thought in 1995 when I use it to create a logo, I soon found more use for it and every year since have found a project that has rewarded me many times the cost of the application once I had purchased it. Most of which I never thought I had the need for and probably would not have even made the attempt to make the effort and the profit if I did not own the license.
    And every time I say to myself what do i have this application for the opportunities arises yet again.
    I thought I would share my experience with you.

  • I am getting errors upon use of JPG images, saved from Photoshop, in Encore.

    How do I use Photoshop JPG images in Encore without errors?
    When using camera jpg images, saved by Photoshop (either save, or image manipulation like autocolor then save, no other Photoshop options were tested), Encore will either :
    1) generate an image import error: "The software that's used to decode the media is not available on this system.  Installing the correct decoders for the files you are working with may help to correct the problem." and be unable to import the image,
    2) Image import stops before completion (Encore stops responding and must be Closed by Windows Task Manager), or
    3) with a number of images imported, upon attempts to create a Slideshow, Slideshow creation will stop while in progress, and Encore does not respond (Encore must be Closed by Windows Task Manager).
    Import and Slideshow creation using untouched camera images is nominal and uneventful.
    Import and Slideshow creation using PhotoShop(64bit) GIF (copy) images is nominal and uneventful.

    The common cause of this issue is still image files where the pixel size is too large. This warranted its own help page, which is now a dead link.
    http://helpx.adobe.com/encore/kb/error-software-used-decode-media.html
    But I assume the pixel size is the same whether you are processing them in Photoshop or not. but the main point is that the underlying problem is not about decoders. Encore encounters a problems dealing with the file and throws the only error it (apparently) has. So you are looking for anything like that: pixel size, changes between rgb and cmyk, extra metadata in files. Maybe even filename oddities (length, special characters).
    I would look in part at what versions you are using and compatibility settings.
    I would save them as png or psd.

  • With iPhoto '11, can I access an actual jpg image from somewhere?

    I want to be able to make sure I can backup the actual, original, jpg image that is imported into iPhoto. Is there anyway to do this? Or how do I find the folder which contains the actual jpg files of the images I import into iPhoto?
    I am concerned with the possibility of iPhoto possibly crashing and not being able to open any of my images, but I would feel much safer knowing where all my images were located, so if I could find the folder in which the jpg is saved when it's imported into iPhoto, I could make sure that folder is included in my backup.
    I don't want to edit the image outside of iPhoto, I just want to make sure I can backup the actual jpg images.
    Please help!
    Thanks!

    I want to be able to make sure I can backup the actual, original, jpg image that is imported into iPhoto. Is there anyway to do this?
    File -> Export and in the resulting dialogue set the Kind to Original
    Export to your preferred location. Apps like iPhoto2Disk or PhotoShare will help you export to a Folder tree matching your Events.
    You cannot access the Library from the Finder, nor should you. The iPhoto Library Folder is a Package File. This is simply a folder that looks like a file in the Finder. The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves.
    To see inside: Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Standard Warning: Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things,, deleting them or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    In iPhoto 11 the originals are stored in the Masters Folder.

  • Code for using thin client over connection pool to access blob and clob

    Hi,
    Currently I am running WL5.1SP12 with oracle thin client 8.1.7 to access blob
    and clob data. As the performance for concurrent users is very bad, I like to
    use the thin client over a connection pool to access the blob and clob instead.
    My question is whether this is possible and if so does anyone have a sample code?
    Thanks.
    This is urgent as the site has to roll out in 2 weeks..
    Rgd,
    Jason

    See http://e-docs.bea.com/wls/docs61/jdbc/thirdparty.html#1043705.
    "Jason" <[email protected]> wrote in message news:3eba851f$[email protected]..
    >
    Hi Stephen,
    Thanks for the reply. Can I confirm that what you are saying is that in release
    6.1 I am able to access blob/clob data via thin client over connection pool?
    Rgd.
    Jason
    "Stephen Felts" <[email protected]> wrote:
    Blob/clob support through the connection pool came in with release 6.1.
    "Jason" <[email protected]> wrote in message news:[email protected]..
    Hi,
    Currently I am running WL5.1SP12 with oracle thin client 8.1.7 to accessblob
    and clob data. As the performance for concurrent users is very bad,I like to
    use the thin client over a connection pool to access the blob and clobinstead.
    My question is whether this is possible and if so does anyone havea sample code?
    Thanks.
    This is urgent as the site has to roll out in 2 weeks..
    Rgd,
    Jason

  • Is it possible to use non gif/jpg images in Swing?

    hi,
    is it possible to use bmp, png or other formats in Swing (eg as part of ImageIcon) without using the imaging libraries?
    I can't find anything in the docs but was hoping its supported somewhere?
    thanks,
    asjf

    I know you can load and display a PNG image just the way you do for a GIF/JPEG one :
    ImageIcon myIcon = new ImageIcon("my_icon.png");but I don't think many others formats are recognized by j2se... you can simply try to load a BMP file to find out.

  • How to convert JPG image to BMP ? (Printing jpg images in smartforms from content server)

    Hi,
    We have employee photos(JPG Format) stored in Content server. And now we want to print the photos in smartforms. For this I had written the below code to read the photo from content server in binary format as below.
    REPORT ZTEST1.
    PARAMETERS P_PERNR TYPE PERNR_D.
    DATA: PS_CONNECT_INFO TYPE TOAV0,
          IT_BINARY TYPE TABLE OF SDOKCNTBIN.
    CALL FUNCTION 'HR_IMAGE_EXISTS'
      EXPORTING
        P_PERNR                     = P_PERNR
    *   P_TCLAS                     = 'A'
    *   P_BEGDA                     = '18000101'
    *   P_ENDDA                     = '99991231'
    IMPORTING
    *   P_EXISTS                    =
       P_CONNECT_INFO              = PS_CONNECT_INFO
    * EXCEPTIONS
    * ERROR_CONNECTIONTABLE       = 1
    *   OTHERS                      = 2
    IF SY-SUBRC <> 0.
    * Implement suitable error handling here
    ENDIF.
    IF PS_CONNECT_INFO IS NOT INITIAL.
      CALL FUNCTION 'SCMS_DOC_READ'
        EXPORTING
       STOR_CAT                    = SPACE
       CREP_ID                     = PS_CONNECT_INFO-ARCHIV_ID
          DOC_ID                      = PS_CONNECT_INFO-ARC_DOC_ID
    *   PHIO_ID                     =
    *   SIGNATURE                   = 'X'
    *   SECURITY                    = ' '
    *   NO_CACHE                    = ' '
    *   RAW_MODE                    = ' '
    * IMPORTING
    *   FROM_CACHE                  =
    *   CREA_TIME                   =
    *   CREA_DATE                   =
    *   CHNG_TIME                   =
    *   CHNG_DATE                   =
    *   STATUS                      =
    *   DOC_PROT                    =
    TABLES
    *   ACCESS_INFO                 =
    *   CONTENT_TXT                 =
       CONTENT_BIN                 = IT_BINARY
    * EXCEPTIONS
    * BAD_STORAGE_TYPE            = 1
    *   BAD_REQUEST                 = 2
    *   UNAUTHORIZED                = 3
    * COMP_NOT_FOUND              = 4
    *   NOT_FOUND                   = 5
    *   FORBIDDEN                   = 6
    *   CONFLICT                    = 7
    * INTERNAL_SERVER_ERROR       = 8
    *   ERROR_HTTP                  = 9
    * ERROR_SIGNATURE             = 10
    *   ERROR_CONFIG                = 11
    *   ERROR_FORMAT                = 12
    * ERROR_PARAMETER             = 13
    *   ERROR                       = 14
    *   OTHERS                      = 15
      IF SY-SUBRC <> 0.
    * Implement suitable error handling here
      ENDIF.
    ENDIF
    Now the issue is I want to convert that binary data to bitmap image and upload the same in to SE78. So that I can use that BMP image from SE78 in my smartforms.
    I had used the class CL_IGS_IMAGE_CONVERTER to covert the image into bmp but it is giving error that error in IMAGE DATA CORRUPT & Error Code 3. The conversion code used is as below.
    ******* CONVERT THE JPG IMAGE INTO BMP PHOTO. **********
      DATA: L_IGS_IMGCONV TYPE REF TO CL_IGS_IMAGE_CONVERTER,
    L_IMG_BLOB    TYPE W3MIMETABTYPE,
    L_IMG_SIZE    TYPE W3PARAM-CONT_LEN,
    L_IMG_TYPE    TYPE W3PARAM-CONT_TYPE,
             L_IMG_SUBTYPE TYPE W3PARAM-CONT_TYPE,
    L_IMG_URL     TYPE W3URL,
    L_ERR_CODE    TYPE I,
    L_ERR_TEXT    TYPE STRING,
             P_DEST TYPE CHAR32 VALUE 'IGS_RFC_DEST'.
      DATA: G_IMG_BLOB     TYPE W3MIMETABTYPE,
          G_IMG_TYPE     TYPE W3PARAM-CONT_TYPE,
          G_IMG_SIZE     TYPE W3PARAM-CONT_LEN.
      IF NOT IT_BINARY[] IS INITIAL.
        G_IMG_BLOB[] = IT_BINARY.
        CREATE OBJECT L_IGS_IMGCONV
          EXPORTING
            DESTINATION = P_DEST.
        CALL METHOD L_IGS_IMGCONV->SET_IMAGE
          EXPORTING
            BLOB      = G_IMG_BLOB
            BLOB_SIZE = G_IMG_SIZE.
        CASE PS_CONNECT_INFO-RESERVE.
          WHEN 'TIF'.
            G_IMG_TYPE = 'image/tiff'.
          WHEN 'JPG'.
            G_IMG_TYPE = 'image/jpeg'.
          WHEN 'PNG'.
            G_IMG_TYPE = 'image/png'.
          WHEN 'GIF'.
            G_IMG_TYPE = 'image/gif'.
          WHEN 'BMP'.
            G_IMG_TYPE = 'image/x-ms-bmp'.
          WHEN OTHERS.
            EXIT.
        ENDCASE.
    L_IGS_IMGCONV->INPUT  = G_IMG_TYPE.
        L_IGS_IMGCONV->OUTPUT = 'image/x-ms-bmp'.
    *    PERFORM GET_SIZE USING PICTURE_CONTAINER
    * L_IGS_IMGCONV->WIDTH
    * L_IGS_IMGCONV->HEIGHT.
        CALL METHOD L_IGS_IMGCONV->EXECUTE
          EXCEPTIONS
            OTHERS = 1.
        IF SY-SUBRC IS INITIAL.
          CALL METHOD L_IGS_IMGCONV->GET_IMAGE
            IMPORTING
              BLOB      = L_IMG_BLOB
              BLOB_SIZE = L_IMG_SIZE
              BLOB_TYPE = L_IMG_TYPE.
          SPLIT L_IMG_TYPE AT '/' INTO L_IMG_TYPE L_IMG_SUBTYPE.
        ELSE.
          CALL METHOD L_IGS_IMGCONV->GET_ERROR
            IMPORTING
              NUMBER  = L_ERR_CODE
              MESSAGE = L_ERR_TEXT.
          BREAK-POINT.
        ENDIF.
      ENDIF.
    ENDIF.
    So could you please some one help me how to convert JPEG Photo to BMP programatically.
    Regards,
    Mayur.

    johnandersonpalmdesert wrote:
    My printer is requesting a vector file.
    Jpeg File format does not support vectors.  Photoshop has limited vector support and tools.  Photoshop can not save vector file formats like SVG.  What File type does your printer want?
    Adobe Illustrator is Adobe vector application.

  • Displaying .jpg images stored in the database

    I created a table and a form to store .jpg images then display the .jpg files in a dynamic page.
    I can insert the images and display the dynamic page but selecting the HREF link will not dispaly the .jpg file.
    I used the Metalink DocID: Note:68016.1 Subject:Browsing database image objects to create the package.
    The package code is as follows
    Create or Replace PACKAGE OREF.IMG
    as
    PROCEDURE select_img_table;
    PROCEDURE retrieve_img_data(img_id varchar2);
    end;
    Create or Replace PACKAGE BODY OREF.IMG
    AS
    PROCEDURE select_img_table AS
    CURSOR c1 IS SELECT id, name FROM filestore;
    BEGIN
    htp.bodyopen;
    FOR i IN c1 LOOP
    htp.print(TO_CHAR(i.id));
    htp.print(i.name);
    htp.anchor('../../pls/oref/IMG.retrieve_img_data?img_id='||to_char(i.id),'jpg',null,null);
    htp.br;
    htp.bodyclose;
    END LOOP;
    END select_img_table;
    PROCEDURE retrieve_img_data(img_id varchar2) AS
    Lob_field BLOB;
    buffer RAW(32767);
    offset BINARY_INTEGER:=1;
    buffer_size NUMBER:=32767;
    BEGIN
    SELECT object INTO lob_field FROM filestore WHERE id=img_id;
    OWA_UTIL.MIME_HEADER('image/jpg');
    LOOP
    DBMS_LOB.READ(lob_field,buffer_size,offset,buffer);
    htp.prn(UTL_RAW.CAST_TO_VARCHAR2(buffer));
    offset:=offset+buffer_size;
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    null;
    END retrieve_img_data;
    END img;
    *The dynamic page Code is as follows:
    <HTML>
    <HEAD>
    <TITLE>Display Filestore Table</TITLE>
    </HEAD>
    <BODY>
    <H2>Display of .jpg files in the Filestore Table</H2>
    <ORACLE>select id, ''||name||''
    from oref.filestore</ORACLE>
    </BODY>
    </HTML>

    You'll need to provide a full URL link to the image ("http://mywebserver/file/images_personnel/28.jpg"), not just a relative path.  Remember, the email client that is used to view the email content knows nothing of the internals of your web server - it can only follow a complete URL to get images and other resources.
    -Carl V.

  • Using Dynamic Images in PDF Reports

    There are a number of threads in the forum where we talked about dynamically including images in PDF reports before. In order to illustrate one technique you can use for doing this, I put together a sample application that illustrates how to dynamically include images that are stored in BLOB columns. I installed the application on apex.oracle.com and made it available for download and local install. You can find the link and login information for this application as well as the download link here:
    http://marcsewtz.blogspot.com/2008/06/one-question-about-pdf-printing-feature.html

    Based on a discussion we had today in another thread, I think it makes sense to add to this thread that the XSL-FO snipped used to get BI Publisher to render images is used when referencing images in a report column, e.g. you included them in your RTF layout using the BI Publisher Desktop Insert->Table option. In this case, the column is referenced with “value-of select”:
    <fo:instream-foreign-object content-type="image/jpg">
    <xsl:value-of select="LOGO"/>
    </fo:instream-foreign-object>
    On the other hand, if you want to dynamically include a company logo, or other data that’s not necessarily repeating, e.g. there’s only one value, then you would use the BI Publisher Desktop Insert->Field option . And you would reference your field as follows:
    <fo:instream-foreign-object content-type="image/jpg">
    <?LOGO?>
    </fo:instream-foreign-object>
    So in this case LOGO refers to either a single-value field, or a single-row report column value.
    Regards,
    Marc

  • How to read  jpg image from a specified path

    Hi
    I am having an image in jpg ext, so i am using File nf = new File(path);to read the image, now i have to place that jpg image in an byte/String array so from that i will save that in to the Oracle DB with BLOB data type, plz answer to this asap with code......
    the following code is not useful i think so...
         String st = "C:\Documents and Settings\Sasi\Desktop\sasi.jpg"    
          File infile = new File(st);
         BufferedImage im = ImageIO.read(infile);
         String[] reader_names = ImageIO.getReaderFormatNames();plz reply to this asap,
    regards
    sasi

    Sasi9 wrote:
    String st = "C:\Documents and Settings\Sasi\Desktop\sasi.jpg"    
    File infile = new File(st);
    //BufferedImage im = ImageIO.read(infile);
    //String[] reader_names = ImageIO.getReaderFormatNames();
    byte[] buffer = new byte[infile.length()];Now use a RandomAccessFile to read the file into your byte array. [readFully(buffer);|http://java.sun.com/j2se/1.4.2/docs/api/java/io/RandomAccessFile.html]

Maybe you are looking for