Please help to load image in the database

Hi to all. ....
I need to save image file in the database thru forms ...
I have some image file in the application server and I need to load it in the database in a Blob col..
Any help ... ??
Thank's in advance

Hi!
Your forms version is very important.
If you use forms 10g and you want to load the image on the client, you need webutil.
If you use forms 6 or you want to load the image from the application server to
a image item in your form, you can use the read_image_file forms build-in:
read_image_file ( 'x:\path\image.jpg.', 'JPG', 'block.image_item' );On forms 10g this will be executed on the server and the filename and path has to be
a physical place on your servers harddisk.
The image item has to be an item of type image and must be assinged to a blob colum in your table.
Regards

Similar Messages

  • Please help, this code is trashing the database

    I have the 'pleasure' of fixing a view that as you can see in poorly written, and it is in production.
    This thing is dying in production is giving me ORA-03113: end-of-file on communication channel error, I did my research and it is a patch that the DBA needs to apply, but he is telling that he does not have time, anyway, if someone out there kindly look at this code and give me some hints of how I can fix this thing, If you look at the end of the code where I put the message 'here is the problem; it is with this thing is dying, It does not like that subquery, I put alias on the tables but still not working.
    SELECT y.gtvsdax_internal_code, y.gtvsdax_internal_code_group,
    spraddr_pidm, spriden_id, spriden_last_name, spriden_first_name,
    spriden_mi, spraddr_atyp_code, stvatyp_desc, spraddr_street_line1,
    spraddr_street_line2, spraddr_street_line3, spraddr_city,
    spraddr_stat_code, stvstat_desc, spraddr_zip, spraddr_cnty_code,
    stvcnty_desc, spraddr_natn_code, stvnatn_nation, spraddr_seqno,
    spraddr_delivery_point, spraddr_correction_digit
    FROM saturn.stvatyp, saturn.stvnatn, saturn.stvstat, saturn.stvcnty, saturn.spriden, saturn.spraddr x, general.gtvsdax y
    WHERE y.gtvsdax_internal_code_group = 'CC_ADDRESS_SYVADDS'
    AND x.spraddr_seqno =
    (SELECT MAX (spraddr_seqno)
    FROM spraddr a
    WHERE a.spraddr_pidm = x.spraddr_pidm
    AND a.spraddr_atyp_code = x.spraddr_atyp_code
    AND a.spraddr_status_ind IS NULL
    AND ( (a.spraddr_to_date IS NULL
    AND a.spraddr_from_date IS NULL
    OR ( a.spraddr_to_date IS NOT NULL
    AND a.spraddr_from_date IS NOT NULL
    AND TRUNC (SYSDATE) BETWEEN TRUNC (a.spraddr_from_date)
    AND TRUNC (a.spraddr_to_date)
    OR ( a.spraddr_from_date IS NOT NULL
    AND a.spraddr_to_date IS NULL
    AND TRUNC (SYSDATE) >= TRUNC (a.spraddr_from_date)
    OR ( a.spraddr_from_date IS NULL
    AND a.spraddr_to_date IS NOT NULL
    AND TRUNC (SYSDATE) <= TRUNC (a.spraddr_to_date)
    AND stvatyp_code(+) = x.spraddr_atyp_code
    AND stvnatn_code(+) = x.spraddr_natn_code
    AND stvstat_code(+) = x.spraddr_stat_code
    AND stvcnty_code(+) = x.spraddr_cnty_code
    AND spriden_pidm = x.spraddr_pidm
    AND spriden_change_ind IS NULL
    AND x.spraddr_status_ind IS NULL
    AND ( (x.spraddr_to_date IS NULL AND x.spraddr_from_date IS NULL)
    OR ( x.spraddr_to_date IS NOT NULL
    AND x.spraddr_from_date IS NOT NULL
    AND TRUNC (SYSDATE) BETWEEN TRUNC (x.spraddr_from_date)
    AND TRUNC (x.spraddr_to_date)
    OR ( x.spraddr_from_date IS NOT NULL
    AND x.spraddr_to_date IS NULL
    AND TRUNC (SYSDATE) >= TRUNC (x.spraddr_from_date)
    OR ( x.spraddr_from_date IS NULL
    AND x.spraddr_to_date IS NOT NULL
    AND TRUNC (SYSDATE) <= TRUNC (x.spraddr_to_date)
    here is the problem
    AND ((y.gtvsdax_internal_code_seqno||y.gtvsdax_external_code,
    x.spraddr_atyp_code
    ) =
    (SELECT MIN (c.gtvsdax_internal_code_seqno
    ||c.gtvsdax_external_code
    MIN (c.gtvsdax_external_code)
    FROM saturn.spraddr m, general.gtvsdax c
    WHERE c.gtvsdax_internal_code = y.gtvsdax_internal_code
    AND c.gtvsdax_internal_code_group = y.gtvsdax_internal_code_group
    AND m.spraddr_pidm = x.spraddr_pidm
    AND m.spraddr_atyp_code = c.gtvsdax_external_code
    AND m.spraddr_status_ind IS NULL)
    AND ( (x.spraddr_to_date IS NULL
    AND x.spraddr_from_date IS NULL
    OR ( x.spraddr_to_date IS NOT NULL
    AND x.spraddr_from_date IS NOT NULL
    AND TRUNC (SYSDATE) BETWEEN TRUNC (x.spraddr_from_date)
    AND TRUNC (x.spraddr_to_date)
    OR ( x.spraddr_from_date IS NOT NULL
    AND x.spraddr_to_date IS NULL
    AND TRUNC (SYSDATE) >= TRUNC (x.spraddr_from_date)
    OR ( x.spraddr_from_date IS NULL
    AND x.spraddr_to_date IS NOT NULL
    AND TRUNC (SYSDATE) <= TRUNC (x.spraddr_to_date)
    ))

    Agreed on formatting the query nicely.
    The bit that jumped out to my problem-spotting eye was
    AND ( (a.spraddr_to_date IS NULL
       AND a.spraddr_from_date IS NULL
    OR ( a.spraddr_to_date IS NOT NULL
       AND a.spraddr_from_date IS NOT NULL
       AND TRUNC (SYSDATE) BETWEEN TRUNC (a.spraddr_from_date)
       AND TRUNC (a.spraddr_to_date)
    OR ( a.spraddr_from_date IS NOT NULL
    AND a.spraddr_to_date IS NULL
    AND TRUNC (SYSDATE) >= TRUNC (a.spraddr_from_date)
    OR ( a.spraddr_from_date IS NULL
    AND a.spraddr_to_date IS NOT NULL
    AND TRUNC (SYSDATE) <= TRUNC (a.spraddr_to_date)
    ))which could be written as
    AND trunc(sysdate) BETWEEN trunc(nvl(a.spraddr_from_date, sysdate))
                           AND trunc(nvl(a.spraddr_to_date, sysdate))Similarly with x.spraddr_from_date/to_date.

  • Please help me!--rendering makes the images or video blurry (very pixelated) deteriorates the image  Adobe Premier Elements 13  need help!  .jpg and mpeg images,  but I have never "rendered" before since I got APE 13 about 6 weeks ago.  I am desperate for

    Please help me!--rendering makes the images or video blurry (very pixelated) deteriorates the image  Adobe Premier Elements 13  need help!  .jpg and mpeg images,  but I have never "rendered" before since I got APE 13 about 6 weeks ago.  I am desperate for assistance!

    That's going to be a ridiculous waste of money and energy.
    First of all, the current ATI drivers don't support multiple GPUs, so at the moment even a single 4870X2 would be only a 'normal' 4870 (which is quite a speed beast already). GFX drivers evolve rapidly, so things might look different next month, but when it comes to Linux and hardware there's one Golden Rule: stay away from the newest stuff and wait for proper support to get coded.
    I also wonder what power supply could possibly cope with the differences between idle and full load; that's way beyond 400W. But then, I'm one of those "quiet&green" types where >100W idle is already a bit much.
    I kind of understand that you want to get it done and not worry about hardware for the next 10 years or so, but that's simply not how the hardware world works and never did. At least not for the average consumer.

  • Loading an Image from the database and display it on browser

    I do not know if this is even possible.
    At the moment, to load an image inside an Html page you need to use the <img src=""> tag. and in the src you put the path of the image. Now I would like to save an image inside the database.
    An option to still display the image on the browser would be that my service object, would load the object from the database (saved as blob) then save it somewhere on the Server, and the still use the <img> tag to load the image from that location.
    However I was wondering wheather there is another way to do it without saving this image on the server. that is loading the bytes from the database (or a location on the server) and provided these bytes to the jsp page to display the image.
    Is this possible? or?
    regards,
    sim085

    hmm ... ok .. that sounds good .. but that means that
    a servlet must exsist at all time to display the
    required image.Servlets are usually instantiated by the servlet container upon an incoming request.

  • Is it better to store the image in the database or to use BFile

    Hi all,
    I've a doubt regarding the handling of the image. For example i've the images of the persons amounting to 50,000(the number will be increased in future). So i just want to know which is the better menthod. is it better to store all the images in the database or to store in local OS and use Bfile concept. I'm using Forms 6i and Forms 10g(10.1.2.0.2). OS: Windows XP
    Regards,
    Alok Dubey
    Edited by: Alok Dubey on Nov 14, 2008 5:43 PM

    But the total number (i.e.., 50,000) is scaring me to use the BlobI don't think the database will cause problem just due to the amount of data stored in blobs. Of coure you would have to check which parameters to set for the blobs to make storage efficient. If
    You didn't mention your db-version, in 11G you could also think of using compression and deduplication to deal with the data amount.
    In general i agree with Francois, the best way depends, but in terms of data consistency and easy backup/restore there might be some advantages in using the blob-version.
    hope this helps.

  • Please help : invalid fiasco image header , and %...

    yes i'm getting these 2 messages, i'm just trying to reflash but i can't, please help me, i tried changing the name of the images, adding .bin ( on xp ) ... but i just can't reflash please help me, i tried these on win7 32bits, and on xp sp3, i'm getting the same thing please can someone help me . note : my device shows the nokia logo, usb logo..... without a backlight, they are all dark, please guys help me .
    Reality is wrong....dreams are for real... 2pac .
    don't forget to hit that green kudos
    Solved!
    Go to Solution.

    I've been really busy with work.. really really busy.. hopefully this week might start to get a bit quieter..
    Right..
    %m means "File not found or bad file name"
    when you run "flasher-3.5 -F os.bin -f" flasher wil be looking for a file called os.bin.. If it can't find os.bin, it gives you the error %m
    Why does it say %m and not something clearer? That's because of a bug in Nokia's software!
    Ok.. Did you download the zip file I sent you? If so here's how I think we can do this:
    Step 1) Open a CMD window
    Go to the start menu, select run then type CMD
    A black cmd window will pop up.. in that window run these commands exactly:
    cd %ProgramFiles%\maemo\flasher-3.5
    start .
    A windows explorer window will appear. Move this window out of the way.. BUT don't close it
    Step 2) move the bin files
    Find the zip file you downloaded.. double click to open the file
    Inside you'll find two bin files
    Drag both files from the zip file into the explorer window that popped up in step 1
    Now close the zip file window
    Step 3) rename the bin files
    In the windows explorer window into which you dragged the bin files, you have to rename the files
    Click on
    RX-51_2009SE_10.2010.13-2.VANILLA_PR_EMMC_MR0_ARM
    and rename (press F2) the file to emmc
    Click on RX-51_2009SE_10.2010.19-1.003_PR_COMBINED_003_ARM.bin
    and rename (press F2) the file to os
    Step 4) flash the files
    unplug and turn off your phone
    In the black cmd window run this command
    flasher-3.5 -F os.bin -f
    flasher will pause saying "waiting for suitable device"
    Press and hold the U button on your phone and plug it in via usb.. you can let go of the U button when flasher starts doing something
    Once flasher has finished (it will say "completed successfully") you can continue:
    run this command
    flasher-3.5 -F emmc.bin -f -R
    That should be it

  • Please help, my Canon Image Formula P-215 will not work w/ Mavericks

    Please help, my canon image formula p-215 will not work w/ the new mavericks upgrade, is there a work around?

    I ran into the same problem, I posted what worked for me in another topic in this forum:
    https://discussions.apple.com/message/25208435#25208435
    Hope it helps

  • Can BI Publisher read the images from the Database?

    Hi All,
    Can BI Publisher read the images from the Database?
    if yes how it can be achieved?
    Thanks
    Aravind

    Hi,
    There is an example in oracle db. Use the schema PM (Print Media).
    Select the corresponding table that contains the column AD_PHOTO.
    In your RTF template simply to print the image stored in the db use:
    <fo:instream-foreign-object content-type="image/jpg"> <xsl:value-of select="AD_PHOTO"/>
    </fo:instream-foreign-object>
    RUn the RTF template and it should show you all.
    Cheers
    Jorge
    p.s. If this answers your question then please grant the points and close the thread

  • My youtube does not work on safari only when i try to play a video it says "This video is not available on mobile add to playlist" But i am using a mac air 11 inch it is not a mobile. Please Help. i have to use the youtube on firefox or chrome

    my youtube does not work on safari only when i try to play a video it says "This video is not available on mobile add to playlist" But i am using a mac air 11 inch it is not a mobile. Please Help. i have to use the youtube on firefox or chrome. At times it also say QuickTime Player can't open "video.3gp". and
    The file may be damaged or may not be a movie file that is compatible with QuickTime Player. when i try to open a video on youtube on safari

    I too am having the same issue as the OP.
    Your USER AGENT information is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18
    Every webserver that receives a request from your browser is able to determine the HTTP USER AGENT information unless it has been removed by some software (e.g. firewall) before the request was trasmitted.

  • HT1688 Can you please help me. I purchased the new Apple I 4s phone from AT&T. I bought it out right. NO CONTRACT!! I paid almost $1000.00 for it. I then, had it enrolled it in my company's  ATT service plan. They paid the bill for my service. Since, I ha

    Can you please help me. I purchased the new Apple I 4s phone from AT&amp;T. I bought it out right. NO CONTRACT!! I paid almost $1000.00 for it. I then, had it enrolled it in my company's  ATT service plan. They paid the bill for my service. Since, I have left the company. I have retained, and assumed financial responsibility for the phone, and the phone number with AT&amp;T. The same day I assumed ifinancial responsibility, I had the phone number ported to a new service provider. ( Straight Talk ) After doing so, my phone worked fine. (as far as cellular service) NO DATA Service !!!! I have been on the phone with AT&amp;T, Straight Talk, and Apple, FOR HOURS over TWO days!!! Trying  to get this problem resolved. All I need to do, is change my APN settings (access point name ) settings. Its  my phone!!! Why does any body have this APN menu locked from me??? I've been on the phone for two days between, AT&amp;T, Straight Talk, and Apple products technical support teams. Everybody points the finger at the next guy!! What can I do to get the phone, that I paid for, work  for more than just a phone, and a paper weigh?
    PLEASE HELP ME!!!!!
    Jason
    Sent from my iPhone
    <Email Edited by Host>

    Wow... you seriously over paid for an iPhone.
    That probably explains why you have/had no clue you were purchasing a locked device and think it's an Apple problem to get it unlocked.

  • Whenever I connect my 4th generation iPod thouch, all of the playlists on my iPod get deleted. This is very frustrating. Someone please help me? I searched the settings on iTunes and couldn't find anything.

    Whenever I connect my 4th generation iPod thouch, all of the playlists on my iPod get deleted. This is very frustrating. Someone please help me? I searched the settings on iTunes and couldn't find anything.

    Also, when I go on to safari, another alert pops up that safari cannot verify the identity of the website, anything that I type in to as common as google.com. It gives me 3 options to either cancel, look at details, and continue. I've looked at the details of the website of Google and it is legitimate the site. Any help?

  • TS3694 Hi, i'm trying to update my iphone but this is the msg i'm getting, can you please help me. thank you. "the iphone ''C & M '' could not be restored. An unknown error occurred (3194)"

    Hi, i'm trying to update my iphone but this is the msg i'm getting, can you please help me. thank you. "the iphone ''C & M '' could not be restored. An unknown error occurred (3194)"

    http://support.apple.com/kb/TS3694#error3194
    This means that either your firewall/antivirus is blocking access to Apple's servers, or you have used your computer to jailbreak an iDevice in the past. The link above tells you how to resolve this issue.

  • I upgraded to mountain lion a week ago and now on startup of my macbook pro, microsoft excel and word start up automatically and then crash? very strange can anyone please help? I have checked the login items under users and groups and there is nothing.

    I upgraded to mountain lion a week ago and now on startup of my macbook pro, microsoft excel and word start up automatically and then crash? very strange can anyone please help? I have checked the login items under users and groups and there is nothing.

    Are you using the Office for Mac 2011 version, as you need to do?  The Office for Mac 2004 is Not at all compatible with Mountain Lion, and the 2008 version has been noted to have some problems running with ML.
    Hope this helps

  • In version 31.2.0 have error in console " Error: Please do not load stuff in the multimessage browser directly" is this causing poor performance?

    Windows 8.1
    Error message at startup
    Timestamp: 26/11/2014 21:33:29
    Error: Please do not load stuff in the multimessage browser directly, use the SummaryFrameManager instead.
    Source File: resource://gre/modules/summaryFrameManager.js
    Line: 85
    What does this mean?

    If you keep getting a 'red' message it means that the HDD is faulty and will have to be replaced.  You will have to format the new HDD in Disk Utility>Erase and then install the OSX and your data from Time Machine.
    Ciao.

  • Please help me how to take the "Spot Color" in illustrator?

    Hi,
    Please help me how to take the "spot color in illustrator CS" using vb script (or) java script.
    Regards,
    Prabudass E.

    Prabudass,<br /><br />If you are just wanting to see if the illustrator file uses spot colors - run the Delete Unused Panel items from the default actions. then view the swatch palette in small or large List View. The color names that have a square containing a gray circle (spot) to the right of their color names are spot colors. <br /><br />The following will get the spot color name of an existing swatch named "Color1" and change it to "Nicks Swatch" and will assign the CMYK values stated.<br /><br />if (app.documents.length > 0){<br />var swatches = app.activeDocument.spots;<br />for(i=0;i<swatches.length;i++){ var currSwatch = swatches[i]; if(currSwatch.name == "Color1")<br />{currSwatch.name = "Nicks Swatch";<br />     var newColor = new CMYKColor(); <br />     newColor.cyan = 35; newColor.magenta = 0; <br />     newColor.yellow = 50; <br />     newColor.black = 0; <br />     currSwatch.color = newColor; } }}<br /><br />When this script has run the swatch palette will not immediately reflect the changes to the swatch name until you double click on a swatch and click OK or Cancel in the Edit Swatch dialog.<br /><br />I hope that I have understood your question correctly and that these responses are helpful.<br /><br />Good Luck<br /><br />Nick

Maybe you are looking for