How could I load image via a Form when it is in runtime by not using default block

1. How could I load image from my local computer to the database via a Form when it is in runtime?
2. And how to display the image stored in the database on a Form ?
Thanks buddy ~
A nice member answered this question already, but I want to know how could I do it by using manual create block instead of using database item directly~
Could anyone help me pls~

This is the only way I know right now:
1) Create this table
SQL> desc av_data
Name Null? Type
BLOB_ID NOT NULL NUMBER(10)
BLOB_TYPE NOT NULL VARCHAR2(10)
DESCRIPTION NOT NULL VARCHAR2(25)
BLOB_DATA LONG RAW
2) On form create a button with this 'when-btn-prssed' tgr:
DECLARE
     v_dirname          VARCHAR2(255);
     v_filename          VARCHAR2(255);
BEGIN
     v_dirname := 'C:\';
     v_filename := get_file_name(v_dirname, NULL,
     'Bitmap file (*.bmp)|*.bmp|'                    ||
     'JPEG file (*.jpg)|*.jpg|'          );
     IF v_filename IS NOT NULL THEN
read_image_file(v_filename, 'ANY',
'av_data_image.blob_data');
     END IF;
END;     
3) Add this pre-insert trigger too :
:av_data_image.blob_type := 'IMAGE';
Sorry if this is not exactly the answer you're looking for.
Bob

Similar Messages

  • How can I allow user to customize the functionality of program at runtime? (not using runtime code compilation)

    Using .NET Framework 4.0 what features are available that would allow to accomplish something very modular and user customizable, like depicted in this XML.  Where I define specific base operations like Get() and Put() methods that operate on strings. 
    And allow the user to add and remove those or mix and match them in a way that they basically design their own run time functionality that suits them.  So they just create their own 'Operation' and fill it with the operations they want to perform on some
    incoming data type, in this case it is a string - with substring and insert methods. 
    EDIT - Assuming end user is non programmer and Dynamic Code compilation is not an option.  I have an idea maybe using dynamic keyword, but not sure if it makes what i suggest possible.
    <Operation Name="GetValues">
      <Get id=123"  FromIndex="2" ToIndex="23"/>
      <Get id="234"  FromIndex="3" ToIndex="5"/>
       <Output Path="C:\" Filename="testOut.txt" Append="true">
         <Format>
              <Result id="123"/> , <Result id="234"/>
         </Format>
       </Output>
    </Operation>
    <Operation Name="InsertValue">
      <Put AtIndex="5">stringtoinsert</Put>
      <Put AtIndex="36">anotherstringtoinsert</Put>
    </Operation>

    Hi sjs1978,
    I am not familiar with dynamic code, and I made a research about it.
    >> I'm aware of dynamic code compilation, but that requires user to input pieces of code.
    Did you try to store the pieces of code into a file and call the code when the dynamic code compilation requires user to input code?
    In addition, I found links about using code provider to compile a source file, and the links below might be useful to you.
    # Dynamic Source Code Generation and Compilation
    https://msdn.microsoft.com/en-us/library/650ax5cx(v=vs.110).aspx
    # CSharpCodeProvider Class
    https://msdn.microsoft.com/en-us/library/microsoft.csharp.csharpcodeprovider(v=vs.110).aspx
    # Is it possible to dynamically compile and execute C# code fragments?
    http://stackoverflow.com/questions/826398/is-it-possible-to-dynamically-compile-and-execute-c-sharp-code-fragments
    Best Regards,
    Tony
    Help each other

  • How to Display an Image on my FORM

    Good Day!
    I would like to ask some help from you guys with my problem on how to display an image on my form. I would like to display my uploaded image on my form but instead of an image, the get_blob_file is showing. By the way, I'm using Apex 4.1
    I downloaded the Order Entry Sample Application and followed the Page 6, the Product Details. I even made snapshots of each details from Page Rendering to Page Processing in order not to miss a thing.
    At the moment, I was able to upload or store the image on my created Oracle table and also able to retrieve it on the Download Link Text with Content Disposition value of Inline, provided by APEX Settings. If I invoke the Download link beside the file browser, a page with the image will be shown, below is the address:
    http://127.0.0.1:8080/apex/apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6&p_content_disposition=inline
    However, instead of showing the image on a region, below is the one showing on my Form:
    <img src="apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6" />
    As you can see the parameter values are the same but I know I missed something that's why I'm here :)
    I would highly appreciate all the help you can provide and many thanks in advance.
    I tried to change gear by making an html region of type PL/SQL (anonymous block) and a procedure but still no image :(
    Below are the scripts.
    declare
    cursor cur is
    select *
    from wsemployee
    where empid = :P230_EMPID;
    begin
    for rec in cur
    loop
    IF rec.mime_type is not null or rec.mime_type != '' THEN
    htp.p( '<img src="my_image_display?p_image_id='||NVL(rec.empid,0)||'" height="'||100||'"/>' );
    else
    htp.p( 'No Image ');
    END IF;
    htp.p( ' ');
    end loop;
    end;
    PROCEDURE
    create or replace PROCEDURE my_image_display( p_image_id IN NUMBER)
    AS
    l_mime VARCHAR2 (255);
    l_length NUMBER;
    l_file_name VARCHAR2 (2000);
    lob_loc BLOB;
    BEGIN
    SELECT MIME_TYPE, PHOTO_BLOB_CONTENT, PHOTO_FILENAME,DBMS_LOB.GETLENGTH(photo_blob_content)
    INTO l_mime,lob_loc,l_file_name,l_length
    FROM wsemployee
    WHERE empid = p_image_id;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(l_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || l_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(l_file_name,instr(l_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    END my_image_display;
    Edited by: user13831927 on Dec 22, 2012 3:24 PM

    Hi Ying,
    you can add a UDF to the table spp2 with a programm
    but the table is not yet listed in the 'Manage User Fields' form.
    there's no way to "enable" it - sorry

  • How do you load images from a Win7 machine to iPhone?

    Hi. How do you load images from a Windows 7 PC to an iPhone 4? I'd like to load the pictures to use as wallpapers. Thanks.

    You CANNOT transfer photos from your computer to your iPhone when connected to your computer as an external drive. This is for transferring photos and/or video from your iPhone's Camera Roll to your computer's hard drive ONLY.
    To transfer photos from your computer's hard drive to your iPhone, this is selected under the Photo's tab for your iPhone's sync preferences with iTunes followed by a sync.

  • How to update a image via URL SWF

    Hi, I want to make a sort of slideshow of the players in my game (In game when you change clothes/weapons the image auto updates to show your current character) How would I insert images into CS4 and when the image updates for it to update in CS4? PS. This is when the project is exported and uploaded to my website. Example image that auto updates:
    (http://www.msblur.com/GD/?n=AdminLee) = (http://www.msblur.com/GD/?n=CHARACTERNAME) Where CHARACTERNAME is thats where I put each individual character I want to add in..Thanks.

    you can load image files into your swf dynamically but you can't easily change swf library items dynamically.
    how you use php depends on whether you're using as2 (use loadvars) or as3 (use the urlloader class).  how you use html depends on your actionscript version and what you're trying to do.  if you want to open a html page in a browser window use getURL (as2) or navigateToURL (as3).

  • How I can load images from Creative Cloud storage in photoshop plugin, created in Extension Builder 3 with use html5/css/js?

    How I can load images from Creative Cloud storage in photoshop plugin, created in Extension Builder 3 with use html5/css/js ?

    At this point there is no API for accessing the cloud storage outside Adobe's own closed loop.
    Mylenium

  • How can i display image in RTF template when Oracle Apps running in Windows

    Can any body help how can i display image in RTF template when oracle apps running in Windows Server.
    Thanks
    Ravi

    Hi Ravi,
    You can add images into your rtf template using MS Word Insert Picture feature.
    Did you try this method?
    Thanks
    Ravi
    [email protected]

  • When I connect my iphone to my mac it says itunes will not work with my iphone cause it needs version 10.6.3 itunes,. problem is i have no idea how to down load that to my iphone when my mac will not connet to it cause it nees the down load help please

    when I connect my iphone to my mac it says itunes will not work with my iphone cause it needs version 10.6.3 itunes,. problem is i have no idea how to down load that to my iphone when my mac will not connet to it cause it nees the down load help please

    Ive got the same problem, just got my iphone unlocked, and they told me to sync it to itunes to get it permently unlocked, well everytime i plug my iphone in it says; it wont work as it needs up dating to 10.6.3, which i have already updated, but still doesnt work, so how can i get my phone unlocked?

  • I edit movies onMac OS X using Final Cut Express and down load to desk top in .mov format. How do I load finished movie to i pad 2? i tunes will not transfer it.

    I edit movies onMac OS X using Final Cut Express and down load to desk top in .mov format. How do I load finished movie to i pad 2? i tunes will not transfer it. Thanks, stevefromnorthfreo

    Try outputting it as a MP4 or M4V
    If Final Cut won't output it, Mpegstreamclip will convert it. So will Quicktime if you have the pro version.

  • When you load Windows via Boot Camp Assistant program and run Windows does not recognize the "usb" outlets cannot identify the device through the Dvd or flash

    When you load Windows via Boot Camp Assistant program and run Windows does not recognize the "usb" outlets cannot identify the device through the Dvd or flash

    Did you install BC drivers on the Windows side?

  • When Using iOs 7.1.2 OSX 10.9.4 notes are not syncing via USB. When will this be fixed. Not interested in iCloud or IMAP solution.

    When Using iOs 7.1.2 with mac OSX 10.9.4 mavericks notes are not syncing via USB.
    When will this be fixed ? Not interested in iCloud or IMAP solution. it worked before,  I can't really
    understand why apple would change one of my favorite features. I use the notes feature to
    capture  quick ideas on the road and having it synched on my computer and my phone was very useful.
    Previous blog posts elsewhere indicated this would be fixed in the latest rev of iOS, OSX and iTunes.
    But alas after the recent update it's not. Really Annoying.

    poweruser_art wrote:
    When Using iOs 7.1.2 with mac OSX 10.9.4 mavericks notes are not syncing via USB.
    When will this be fixed ? Not interested in iCloud or IMAP solution.
    Then you won't be syncing your notes anymore.
    Contacts and Calendars are the only things they restored.
    iOS: How to transfer or sync content to your computehttp://support.apple.com/kb/HT1296

  • How do I pay for my HD rental on apple TV? Can I not use the $$$ on my itunes acct.?

    How do I pay for my HD rental on apple TV? Can I not use the $$$ on my itunes acct.?

    norcalpac wrote:
    Can I not use the $$$ on my itunes acct.?
    yes.
    works for me.

  • I want to ask company when user update to ios7 it stuck all of device and not clearly about apple id to active how to solve it or just keep all of device into recycle because can not use?

    i want to ask company when user update to ios7 it stuck all of device and not clearly about apple id to active how to solve it or just keep all of device into recycle because can not use?

    You need to enter the Apple ID and password that was used to set up/activate the phone. There is no way around this.

  • How to secure/inhibit printing, copying or editing when "Mark: If these alternatives is not active.."?

    How to secure/inhibit printing, copying or editing when "Mark: If these alternatives is not active,  it is either because the document already has the security, it was signed with sertificate based signature or it was established in LiveCycle Designer ES"?

    How to secure/inhibit printing, copying or editing when "Mark: If these alternatives is not active,  it is either because the document already has the security, it was signed with sertificate based signature or it was established in LiveCycle Designer ES"?

  • HT5114 I lost my iphone 5 without signing out my account but I have bought another one. How can I make sure that the person in possesion of the phone is not using my account to make purchases? ?

    I lost my iphone 5 without signing out my account but I have bought another one. How can I make sure that the person in possesion of the phone is not using my account to make purchases? ?

    Thanks for your prompt response... will changing my password also stop the authomatic download of my new applications and music from downloading to the stolen phone?

Maybe you are looking for

  • Problem with roles in CRM 5.0 PC-UI

    Hi everybody! I have a problem with CRM 5.0 PC-UI. When I have user profile SAP_ALL, BSP's are showed correctly. When I'm using restricted profile (for example role 'Account manager'), for some BSP's I'm receiving this error: Exception Class CX_CRM_B

  • Help - Tuning query based on status column

    Hi, I have a query wherein I need to fetch records based on the values in the status column. It can hold values 'A' and 'P'. A record can have an 'A' record and a 'P' record. My conditions are, 1) When only 'A' record is there, then return 'A' record

  • Enter sctivities by ship-to location

    Is it possible to start entering activities by ship-to location (i.e. store number)? Where would that information go, so that we could sort by it, or locate all activities for that store number/location when required? Is this possible?

  • Entity transformation within xsl

    Hello I try to transfer the an xml document with an xsl document containing a line, which should generate an html table border tag. The entity > will be transferred to the corresponding > character, but the < will not transferred. <xsl:if test="posit

  • Quicktime failed to initialize error -2096 using itunes 8, WinServer2003

    Quicktime failed to initialize error -2096 I am getting this when trying to run Itunes 8 on windows 2003 standard When i click on "QTInfo.exe" it says "Not Installed" I tried re-installing a few times, all the regular stuff. When I searched help, all