Image Field and Blob Type

Hi!
I´m working on form that will works lika a image database.
In my table I store the imagens in a blob type column.
In my form, I use a Image Field to display the imagem from database.
It works.
Now I want to generate a md5 hash for the image file, so I createa function that receive a blob variable
and calculates the md5 hash.
That works too.
The problem is that I want to get the hash at runtime, right after the file is chosen.
So I did this:
wfilename := WEBUTIL_FILE.FILE_OPEN_DIALOG (wdirname, NULL, file_types_variable);
wmd5    := my_functions_package.md5(my_file => :data_block.image_field);
When I try to compile, I get the error: Bad bind variable 'data_block.image_field'
I guess the forms doesn´t see the image_field as a blob even if it is.
Some one know how can I work arround this? To get the image_field as blob (It already is at database).
Forms [32 Bit] Version 9.0.4.0.19 (Production)
Oracle Database 10g Release 10.2.0.3.0 - 64bit Production
Thanks.

hi
try something like this.
declare
      f varchar2(100);
begin
     f := webutil_file.file_open_dialog();
     if f is not null then
          :block.item := f;
          end if;
     end;or try the following code.
declare
l_file_name varchar2(383);
begin
l_file_name := webutil_file.file_open_dialog( );
if
  l_file_name is not null
then
  if
    :block.rowid is not null
  then
    create_record;
  end if;
  client_image.read_image_file ( l_file_name, substr ( l_file_name, instr ( l_file_name , -1 ) ), 'block.item' );
end if;
end;sarah
Edited by: QGIRCO on Jan 20, 2010 8:51 AM

Similar Messages

  • FileChooser - "switch off" file name field and file type drop down choice..

    Hi there,
    I'm wondering, is there a simple way of not displaying the file name field and file type drop down choice that anyone knows of?
    Reason being; my FileChooser is embedded in an application window and does not pop up as a dialog - the users are only acessing one file type, but it could be in any folder on their machine.
    many thanks,
    Fergus.

    Moved to legacy SDK forum

  • Error after updating field and content type

    Hi,
    I have a feature with a custom list and content type.
    I changed one field type from Text to Note, and made the same change in my Schema.xml file.
    But after deploying I get an error when I visit my list.
    "The file name you specified could not be used.  It may be the name of an
    existing file or directory, or you may not have permission to access
    the file".
    I have several sites with the same list, and all gives the same error.
    What I understand from the ULS logs it can't find my schema file, but when I look at the 14 hive it is there.
    ULS
    Failed to open the file 'schema.xml'.
    Failed to retrieve the list schema for feature {4D3315CB-7F20-4DB3-9CB3-258AC110F9BC}, list template 21973; expected to find it at: "".
    Any ideas about how to fix this?
    The text expected to find it at: "" can be the problem as I have my schema file in a folder named Correspondence List.
    And in the 14 hive I find the schema at 14\TEMPLATE\FEATURES\my feature\Correspondence List\Schema.xml
    This is from my manifest file:
    <ElementManifest Location="Correspondence\Elements.xml" />
    <ElementManifest Location="Correspondence List\Elements.xml" />
    <ElementFile Location="Correspondence List\Schema.xml" />
    Any help are appriciated

    Hi,
    Any update?
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Image size and mime type.. non-java guy needs help

    Image size, mime type.. non-java guy needs help
    Im not at all familiar with java so this is really weird for me to work out. I?ve been doing it all day (and half of yesterday).
    Im trying to write a custom clodFusion tag in java that gets the width, height, size and MIME types of a given file. I?ve been trying to get it to work on the command line first. I can get the width and height but cant get the size and the MIME type.
    Here is what I got
    /*import com.allaire.cfx.*;*/
    import java.awt.image.renderable.*;
    import javax.media.jai.*;
    import com.sun.media.jai.codec.*;
    import java.io.*;
    import java.util.*;
    public class ImageInfo {
    private RenderedOp image = null;
    private RenderedOp result = null;
    private int height = 0;
    private int width = 0;
    private String type = "";
    private String size = "";
    public void loadf(String file) throws IOException
    file = "80by80.jpg";
    FileSeekableStream fss = new FileSeekableStream(file);
    image = JAI.create("stream", fss);
    height = image.getHeight();
    width = image.getWidth();
    System.out.println(height + "\n");
    System.out.println(width);
    System.out.println(type);
    public static void main(String[] args) throws IOException {
    ImageInfo test = new ImageInfo();
    test.loadf(args[0]);
    can anyone please help me out to modify the above so I can also print the mime type and the file size to screen.
    thanks for any help

    any suggestions?

  • Problems with image field and java

    Hi, i´m a beginner user of Adobe LiveCycle Designer, i create a form and i fill the text fields with a Java code, but when i try to dinamically assign a image on the image field of my form it doesn´t work, someone have any idea of whats happening or how can i manipulate the image field from Java code? thanks

    Session data will only last as long as the servlet container allows. In most cases (eg Tomcat) this defaults to about 30 minutes, but can be changed. Check that the session timeout configuration in your servlet container hasn't been set to "never timeout".
    Even if it had, I would have expected OutOfMemory errors rather than degrading performance. Although if the max heap size of the JVM has been set to a level higher than the RAM on the machine you could be getting excess page file usage.
    This probably wouldn't put CPU utilization at 99% though.. I suspect this is a code related problem.
    My best guess is one of two reasons:
    1. Somewhere in your code, or someone elses, there is a loop that never ends.
    2. There is a bug in the servlet container.
    I don't know which servlet container you are using, but I have used Tomcat extensively and never seen this behaviour.
    In terms of solving this problem, that's a tough one. I would try running the entire application within a profiling tool to see which threads are clogging up the processor. The Eclipse java IDE has a plugin called Eclipse Profiler which will allow you to track the utilization of code right down to the method level.
    If it were me, I'd be running the entire web application with a profiler like Eclipse Profiler and waiting for it to start clogging, then see who the guilty code is.

  • "Create Application from Database" and BLOB type

    Hi all,
    I see many threads about BLOB type but my question is related to the Flex Builder built-in feature "Create Application from Database".
    Is there a way or a sw version to automatically use MySQL BLOB types when creating a PHP/database application?
    Thank you!

    Hi Dave,
    Would you please file a bug with all the necessary details
    regarding this issue? The bug base is found at:
    http://bugs.adobe.com/jira.
    We’ll look into this. Thank you for letting us know!
    Lacra

  • Report 6i and BLOB type of field

    Hi,
    I have a table name logo, fields are:-
    LOGO_NAME varchar2(100)
    LOGO BLOB
    If I used form to load picture and saved into this field, how can i extract the data into report?

    Sorry that I must add also that I am using report 6i

  • Image Size and File Type

    For image files we should be able to see the size of the image in inches in the details section.
    Also for any file, we should be able to quickly see the exact file type (Illustrator CS document or Illustrator CS2 document), not just "Illustrator document" which is absolutely useless.

    Stan,
    You can see the file type by hovering over the file in Library view and it will show the file name followed by the extension like jpg, nef or tiff.
    Alternatively in library mode go to grid view it will pixel size of the files as well as the name of the file withthe format.
    If you are not able to see that go to View>View Option.
    Check the option show header with label
    Hope thatt helps.
    Mandhir

  • Image Carousel and Content Type

    I have some URLs for images and PDFs that are being put the SAP Carousel. I'm having the following issue. The URLs I'm using are links to documents in FileNet....which don't end with the file extension...they end with a GUID of the document like so:
    http://www.someplace.com/WorkplaceXT/getContent?mode=download&objectStoreName=test&objectType=document&id={97F6083D-D679-41AB-8758-BD2AEEF14E69}
    The only place I've seen where I can tell if the file is an image or a PDF is in the Response Headers for that image URL in the "Content-Disposition" header.
    Let's say I have 3 images/PDFs...
    <img src="http://www.someplace.com/WorkplaceXT/getContent?mode=download&objectStoreName=test&objectType=document&id={97F6083D-D679-41AB-8758-BD2AEEF14E11}"/>
    <img src="http://www.someplace.com/WorkplaceXT/getContent?mode=download&objectStoreName=test&objectType=document&id={97F6083D-D679-41AB-8758-BD2AEEF14E69}"/>
    <img src="http://www.someplace.com/WorkplaceXT/getContent?mode=download&objectStoreName=test&objectType=document&id={97F6083D-D679-41AB-8758-BD2AEEF14E55}"/>
    What is the best way for me to tell what type of content is actually represented? Can I access the "Content-Disposition" header easily when I load each of the images/PDFs from the URL?

    hi
    try something like this.
    declare
          f varchar2(100);
    begin
         f := webutil_file.file_open_dialog();
         if f is not null then
              :block.item := f;
              end if;
         end;or try the following code.
    declare
    l_file_name varchar2(383);
    begin
    l_file_name := webutil_file.file_open_dialog( );
    if
      l_file_name is not null
    then
      if
        :block.rowid is not null
      then
        create_record;
      end if;
      client_image.read_image_file ( l_file_name, substr ( l_file_name, instr ( l_file_name , -1 ) ), 'block.item' );
    end if;
    end;sarah
    Edited by: QGIRCO on Jan 20, 2010 8:51 AM

  • Refcursor returning image (BLOB type) from database

    Hi,
    Process : Invoke activity takes ID as input parameter and passes it to partner link (db adapter) which executes stored proc returning a ref cursor. SQL statement in stored proc - ref cursor has a column with BLOB type.
    Problem : Unable to return an image (defiined as BLOB type in database) through refcursor in BPEL.
    Error : Unable to convert XSD element Column whose JDBC type is BLOB to a corresponding XML document element.
    ORABPEL-11087
    XSD :
    <complexType name="RowSet">
    <sequence>
    <element name="Row" minOccurs="0" maxOccurs="unbounded" nillable="true">
    <complexType>
    <sequence>
    <element name="Column" maxOccurs="unbounded" nillable="true">
    <complexType>
    <simpleContent>
    <extension base="string">
    <attribute name="name" type="string" use="required"/>
    <attribute name="sqltype" type="string" use="required"/>
    </extension>
    </simpleContent>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    Need Solution : To get an image (of BLOB type) into BPEL using ref cursor.
    Please let me know if you need any more information to get it working.
    Thanks and Regards,
    Rakesh

    Hi Rakesh,
    There are some notes you might want to refer :
    Note.423909.1      'java.lang.NumberFormatException' Signaled When Using Oracle LOB Family Column Types In ODI Datastores And Integration Interfaces:
         Note.423982.1      An "ORA-17410 No More Data to Read From Socket" Error Has Been Signaled From An ODI (Sunopsis) Integration Interface:
         Note.423768.1      Using Oracle Large Object (LOB) Datatype Columns In ODI Integration Interfaces:
         Note.744101.1      ORA-22835 Message Signaled When Using The OdiSqlUnload Tool In ODI:
         Note.424658.1      "ORA-00942" Message With Oracle Large Object (LOB) Datatype Fields In ODI Integration Interfaces:
         Note.423992.1      Using Oracle LONG Datatype Columns In ODI(Sunopsis):
         Note.424107.1      ODI Integration Interfaces And The Use Of Oracle Spatial Datatypes In Source And Target Datastores:
    Hope this helps!
    Cheers
    Anirudh Pucha

  • LiveCycle Designer 8.0 - Image Field Issue

    I am using LiveCycle Designer 8. Ive inserted an image field and when I test it, the image doesnt scale proportionally even though the properties are set up correctly (Scale image proportionally). I understand that in order to get this to work, the files needs to be saved as a dynamic PDF, but I don't have an option of saving as a dynamic PDF. The only "Save as" type options I have are Adobe 7 (Static) PDF Form and Adobe 8 (Static) PDF Form. I also don't have an option of saving as a "dynamic" PDF in the Acrobat Save As window.
    Is there a way to work around this or am I doing something wrong. The file was designed in InDesign, exported to a PDF and then brought into LiveCycle to insert text fields and an image field for a user to input their contact info and their logo. The 5 text fields work perfectly and the one image field works EXCEPT for scaling proportionally even though the properties for that field are set correctly.
    I appreciate any assistance. Thanks!

    Did you import the file using "Create an Interactive Form with Fixed Pages" as your selection on the Import dialog? If so, this brings in the original InDesign PDF as "artwork" (a background layer) on which your form fields are placed. This document can't be dynamic. That might be the issue.

  • Read only image field

    I'm using version 8 and have enabled my form in acrobat so that users can enter text in my fields. I also have an image field on my form. My question is how do I make the image field read-only so that a user can not click on it an prompt them for a file?
    I need to use an image field and not a static image for other reasons.

    I figured it out:
    this.access="readOnly"

  • Manipulation of the size of an image inserted into an Image Field

    Hi,
    I'm learning LiveCycle Designer ES 8.2 as I go. My apologies for the lengthy post but I'm trying to give you as much background as possible.
    I'm are trying to design a form that will allow us to automate data entry (by importing fields into our Access dbase instead doing the data entry by hand).  However, at the end of the day, I also need an electronic pdf file of the same form and a printed paper copy.  Things have been going well until working with the Image Field.
    The form is fairly complicated - 4 pages long.  We're collecting extensive data on specific locales (location, what was seen there, who did the work, etc). On one page, three different images (maps) are needed, each one showing different details on the site's location.  [Please note these images will not be imported into the database but must appear in the electronic pdf and on the paper copy.] The people who fill out the forms are expected to do so using Adobe Reader (the form will have extended rights so that they can save the data they enter on the form).  They would then email us the form as an xml file.  Once we receive the form, we have to add some additional information and then the finalized paper copy and electronic pdf would be made.  We have already done this successfully with much simpler forms, none of which have needed Image fields.
    Here's my problem - one of the three maps required is a standard 1:50000 scale topographic map which shows things like contour lines and latitude/longitude lines.   For accuracy and comparison reasons, having the standard 1:50000 scale is very important to us, so we can make absolutely certain the submitter has the right location.  If the dot plotted on the map is out just a few millimeters, we're looking at an error that represents 100s of meters on the ground.
    The current form exists in Word - we have never had any rules about the image formats used (jpg, gif, etc) or the resolution, as long as the image was clear.  The only rule was that the scale of the topographical map image HAD to be at 1:50000 scale.  This gets very tricky because Word will automatically mess with the physical appearance of the image, based on its resolution.  In most cases, the submitter simply readjusted the image within Word, stretching/resizing it manually until the scale was correct.  Another option was to use an image in the emf file format so that Word didn't readjust the image's appearance based on its resolution. Whatever method they used was fine by us, as long as the scale was correct.
    So far, after playing with all the "sizing" options of the Image field, along with embedding or not embedding the file, I do not see any way to control the physical size of the image. On our form, the three image fields are different sizes, with 2 of them being small (~2x3 inches) and the 3rd being large (~7x7 inches). Regardless of the settings I chose for each image field, the program simply resizes the topographic map whatever Image field it was inserted into,  making the same image appear physically smaller or larger at will.  I cannot correct the scale by resizing it, like I can in Word.   Instead, when I try to select the image, all I am asked is if I wish to insert another image.  Inserting an .emf file format into the field doesn't work - it only shows a blank screen instead of the image.
    Is there a way for the user to adjust the image's physical size in the form, after inserting it (like they can do in Word)?  Demanding that everyone use a standardized resolution or image format also seems highly unlikely to work - there are too many submitters and too many programs that can be used to make the image (some are making them using GIS programs, others are scanning the bought topographic print).  I'd appreciate any help you can give me on this.  I have had very little luck tracking down discussions on Image fields and how they work best within LiveCycle.  Any comments would be helpful!

    Hi,
    I have an example here that is intended to demonstrate the difference between Positioned and Flowed subforms: http://assure.ly/i8pSdy.
    This shows how you can use a slider to change the dimensions of the image object.
    I have extended this to an example with buttons to scale the image: http://assure.ly/i8ZI5Y
    This may not be fine enough for your purposes, but it may give you some ideas.
    Good luck,
    Niall
    Assure Dynamics

  • Problems with Image Field Table in Adobe Forms

    Hello,
    I have a desgined a Adobe Form(Print Only) in the Adobe Desinger in NWDS.
    The form layout contains a table of images in 2 columns and 3 rows. Every Column has a Image Field and a TextField displaying the Image URL.
    The URL of this image is passed at runtime.
    The problem is that when the form is rendered, All the Columns have the same image which is the URL in the first row first column. However the text field displays the correct URL.
    Is this some known bug in the Adobe Forms, or I am missing some property.
    Regards,
    Shubham

    Hi,
    The solution was to put the following code in the initialize event of the image field.
    this.value.image.href = <Photoimagepath>.rawValue;
    Where <Photoimagepath> is the image path.
    Regards,
    Shubham

  • Image fields in Adobe 8 Pro

    I am making a form in Adobe Acrobat Professional and everything is going great and I put in image fields and activated the users so I could send it out to anyone that needed to use this form to place images. So all they had to do was click and find the image and it would place it. Well I am finding many problems, first problem I encountered was when I placed the image field and clicked on "fit image proportionally," in one and then in another one I chose "fit image to box," and they both did the same thing, it fit it to the box, it didn't fit proportionally. Is there a way to fix that? Another thing is that I worked around that for now and found a way to get the images on the form but when I did they were blury and pixelated, but they are 300 dpi, how can I fix that? If anyone can help me ASAP I would be greatful. Thanks

    You'll probably want to ask this in the Acrobat forum rather than here.

Maybe you are looking for

  • Accessing CUCM DB

    Dear Experts, How can I access the CUCM 6.1 Database to get some data from the logs?

  • Wireless Networking / Solaris and a Dell Dimension 8100

    I'm getting ready to buy a Dell Dimension 8100 and I want to install Win2K, Solaris 8, and Mandrake Linux on it. I'm also interested in setting up a Wireless network in my house. I can get the following wireless setup from Dell, but will it work with

  • In PSE 10 Organizer I cannot download the entire thing - just one photo appears

    When I try to access the Organizer in PSE 10 I get only one photo.  What am I doing incorrectly?

  • ISE Alarm DB Size

    Hello Everyone, Today i receive an alert from ise console: OccurredAt: Mon Apr 15 04:00:01 BRT 2013 Cause: DB Size is close to 95% of allowed diskspace Details: Positron DB Size exceeds 95% of allowed disk size. So, in Admin Node and Policy Service n

  • Wrong Behavior in forum table resize

    Look at the attached image. When an author name is very long (circled in red), it should be the one that is split on several line and the topic (thread) should be kept on as few line as possible otherwize you end up with that ugly result as seen on t