Possible to take a blob content out of table

Hi,
i have a table in which the image is getting storing in the table in blob content.
Whether it is possible to copy that image which is stored in the table to outside, so that i can edit the photo in paint.
It is possible to take that blobcontent of the image out of the table.
If so, how to achieve it.
Regards,
Saro.

Hi Saubhik,
Thanks for the reply, but i get the following error while compiling the code after altered to my requirement.
DECLARE
b             BLOB;
file_handle   UTL_FILE.FILE_TYPE;
file_dir      varchar2(100) := '\ebiz1\proddb\apeximages';
l_blob_len    INTEGER;
BEGIN
SELECT   blob_content
INTO   b
FROM   a_images2
WHERE   employee_number = '048';
file_handle := UTL_FILE.FOPEN (file_dir, 'prasad.png', 'wb')
l_blob_len := DBMS_LOB.getlength (b);
UTL_FILE.FCLOSE (file_handle);
end;This is the error message
ORA-29280: invalid directory path
ORA-06512: at "SYS.UTL_FILE", line 41
ORA-06512: at "SYS.UTL_FILE", line 478
ORA-06512: at line 15
Since i have referred the oracle path only, then also it is throwing the error.
Thanks
Saro

Similar Messages

  • Possible to check IN and Check Out Reference Tables?

    Hi All,
    I am wondering is it possible to check in and check out Look Up and other tables like we do for main table???
    If so can any one letme know how?
    Thanks
    Rajeev

    Hi Rajeev,
    Can you elaborate your business requirement of having Check out on reference table?
    Checked out option is used for the below scenario in Main Table
    Create - If the record is checked out, then it is virtually available in MDM until it is approved as the part of the workflow
    Change - The record is kept checked out , so that the user who changes it owns it , and no others has access to change it to achieve the data consitency
    But for reference data , the records is already available in the target system and it is fed to MDM
    Regards,
    Antony

  • Is it possible to take 2 PO print outs for same vendor w different currency

    Hi all..
    I have Created vendor In INR currency.
    client want to take 2 same PO print outs in 2 languages say one PO print in INR currency and one more in USD currency with out changing Vendor currency in vendor master..
    Is possible in SAP??
    Plz give ur views on this??
    thanks and regards
    ramesh reddy
    Edited by: Jürgen L. on Mar 6, 2012 9:06 AM

    yes, u can take print out in two langage, 1st take print out of 1 language then Change PO currency , not Vendor currency.
    but at a time, without changing anything, u cant do it.
    Thanks
    nisha

  • How do you move blob content in a table out to the server file system

    Hi,
    I have a table that contains a blob column containing word and pdf documents I want to be able to take content such as a pdf held in the blob column and move a copy of the pdf to the servers file system. Can it be done.
    Thanks in anticipation.
    SDG

    There is no Monitoring SQL Activity, so we Need to find other Solutions.
    1: can be this Integration Pack:
    http://www.kelverion.com/integration_packs/ip-sql-server/
    2: Create a Trigger in SQL Side, which will Trigger a Runbook
    3: Query every ? 5 ? Minutes the Table,  compare to a sample Table and get the new Informations
    Seidl Michael | http://www.techguy.at |
    twitter.com/techguyat | facebook.com/techguyat

  • Is it possible to take the dvd drive out of a 21.5" iMac (Mid 2011) and replace it with an SSD?

    I just don't want to go through all of the mess of taking of the logic board, so I thought of this, it's the first thing you see after taking off the screen from the iMac.
    Is it easy to do? (I am intermediate at hardware installations)
    Thanks,
    Arayeb.

    Thank you,
    sorry if im getting annoying,
    but as you can see here:
    Intel 6 Series Chipset:
      Vendor: Intel
      Product: 6 Series Chipset
      Link Speed: 3 Gigabit
      Negotiated Link Speed: 1.5 Gigabit
      Physical Interconnect: SATA
      Description: AHCI Version 1.30 Supported
    OPTIARC DVD RW AD-5690H:
      Model: OPTIARC DVD RW AD-5690H               
      Revision: 4AH5  
      Native Command Queuing: No
      Detachable Drive: No
      Power Off: Yes
      Async Notification: No
    Under Negotiated link speed is says 1.5 gigabit.
    Does that mean the ODD is 1.5 gigabit?
    Or will I have a 1.5 gigabit speed connection from the ssd?
    I hope not,
    Thanks.

  • Display blob content as pdf file

    Dear Expert,
    Currently i'm using oracle apex 3.0.1.
    I'm having a problem on displaying blob content (from database table) as pdf file on oracle application express but i'm able to save to download the pdf.
    Below is the procedure that i used to display blob content,
    PROCEDURE lf_html_pdf (pv_image IN VARCHAR2, pv_index IN NUMBER) is
    l_mime VARCHAR2 (255);
    l_length NUMBER;
    l_file_name VARCHAR2 (2000);
    lob_loc BLOB;
    BEGIN
    begin
    selecT OI_BLOB,DBMS_LOB.getlength (OI_BLOB)
    into lob_loc,l_length
    from ord_img
    where oi_tno= pv_image
    and oi_ti='PDF'
    and oi_idx=pv_index;
    exception
    when others then
    null;
    end;
    OWA_UTIL.mime_header (NVL (l_mime, 'application/pdf'), FALSE);
    HTP.p ('Content-length: ' || l_length);
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (lob_loc);
    END lf_html_pdf;
    I get the error message as below when i execute the procedure above;
    Error report:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 356
    ORA-06512: at "SYS.OWA_UTIL", line 415
    ORA-06512: at "HCLABPRO.PKG_PDF", line 220
    ORA-06512: at line 2
    *06502. 00000 - "PL/SQL: numeric or value error%s"*
    I'm appreciated if expert can have me on the problem above?
    Thanks
    From junior

    *Always post code wrapped in <a href=http://wikis.sun.com/display/Forums/Forums+FAQ#ForumsFAQ-Arethereanyusefulformattingoptionsnotshownonthesidebar?"><tt>\...\</tt> tags</a>:*
      PROCEDURE lf_html_pdf (pv_image IN VARCHAR2, pv_index IN NUMBER) is
         l_mime        VARCHAR2 (255);
         l_length      NUMBER;
         l_file_name   VARCHAR2 (2000);
         lob_loc       BLOB;
      BEGIN
          begin
            selecT OI_BLOB,DBMS_LOB.getlength (OI_BLOB)
            into lob_loc,l_length
            from ord_img
            where  oi_tno= pv_image
              and oi_ti='PDF'
              and oi_idx=pv_index;
          exception
                when others then
                null;
            end;
         OWA_UTIL.mime_header (NVL (l_mime, 'application/pdf'), FALSE);
         HTP.p ('Content-length: ' || l_length);
         OWA_UTIL.http_header_close;
         WPG_DOCLOAD.download_file (lob_loc);
      END lf_html_pdf; Start by getting rid of:
          exception
                when others then
                null;and never using it anywhere ever again.
    If you're not actually going to use the <tt>l_mime</tt> and <tt>l_file_name</tt> variables then remove these as well. (Although I really think you should set a filename.)
    >
    Error report:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.OWA_UTIL", line 356
    ORA-06512: at "SYS.OWA_UTIL", line 415
    ORA-06512: at "HCLABPRO.PKG_PDF", line 220
    ORA-06512: at line 2
    06502. 00000 - "PL/SQL: numeric or value error%s"
    >
    The error stack indicates that the exception is being raised in <tt>HCLABPRO.PKG_PDF</tt>: what is <tt>HCLABPRO.PKG_PDF</tt>? Does this actually have anything to do with the procedure above?
    I get the error message as below when i execute the procedure above;How do you execute it?
    What happens when it's executed without the <tt>when others...</tt> built-in bug?

  • Show a blob( pdf ) from db-table  in the clients browser/ web.show_document

    my env:
    Database R11_2 on one windows-host-machine
    AS 10 g on another windows-host-machine
    I can show files in Forms10g from inside the AS with web.show_document,
    that works fine
    but now I want to show a ( pdf or text ) File from a BLOB in a Table inside in the Database
    to the Browser running in Forms on AS,
    I do not want to create a extra Form for this reason, but want to show it in browser - windows
    ( how ) can I use web.show_document against a URL on the Database R11 ?
    what other tool , java ?
    regards

    Easiest way is probably to use mod_plsql and wpg_docload.download_file. If you retrieve the blob content from some table, than you can show it with a generic procedure like:
    procedure show_webdoc(io_blob          in out nocopy blob
                         ,i_mimetype       in varchar2
                         ,i_filename       in varchar2)
    is
    begin
       if dbms_lob.getlength(io_blob) >0 then
          owa_util.mime_header(nvl(i_mimetype,'application/octet'),false);
          htp.p('Content-length: ' || dbms_lob.getlength(io_blob));
          htp.p('Content-Disposition:  attachment; filename="'||i_filename|| '"');
          owa_util.http_header_close;
          wpg_docload.download_file(io_blob);
       end if;
    end show_webdoc;

  • How to clear the contents of a table

    I was using a 'build table' to collect some datas and pass it to an 'Express  table'.
    what are the possible options to clear the contents of that table?
    How can i clear the contents using a 'button'?

    Build table function has an additional input called 'Reset'
    Attach a boolean to it.
    On front panel, set the boolean's mechanical action as 'latch when released'
    Look at attached vi
    Regards,
    Dev
    Message Edited by devchander on 08-06-2007 08:02 AM
    Attachments:
    reset table.vi ‏57 KB

  • In t-code COHV: is it possible to take out material-availability-check?

    Hi Friends,
    In t-code COHV: is it possible to take out material-availability-check?
    Regards,
    Will.

    Dear Will,
    Yes
    Check this link
    [COHV u2013 AV Check |COHV  Mass processing of production order and planned order;
    Regards
    Madhu

  • Is it possible to take out the keys in my keyboard so I can clean them?

    I noticed that a lot of dust has gotten inside my computer recently and my keys are in need of a dusting.
    Is it possible to take out the keys without breaking them..?

    Compressed air is the best way to get the dust out. Don't worry about lodging dust inside somewhere, everything important is sealed up against compressed air.
    Getting the keys back on is very, very, very fussy work. And that's presuming you don't break any.

  • Is it possible to take songs off of your ipod and put it them on itunes

    by accident i permanately deleted all my songs off my computer and cant get them back ,,,trust me i tried everything. im wondering is possible to take songs from your ipod and put them on your itunees library?

    You can't sync or drag your music back directly from an iPod to iTunes, the transfer of music is designed by default to be one way from iTunes to iPod. However there is a manual method of accessing the iPod's hard drive and copying songs back to iTunes on Windows posted in this thread: MacMuse - iPod to iTunes
    There's a command in iTunes 7 under File, "Transfer Purchases from iPod" you can check out. A paragraph on it has also been added to this article: How to use your iPod to move your music to a new computer
    If you prefer something more automated then there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod, this is just a selection. Have a look at the web pages and documentation for these, they are generally quite straightforward. As iTunes 7 is just out some of these may not work with it yet though I haven't experienced any problems with the Mac software I use.
    YamiPod Mac and Windows Versions
    iGadget Windows Only
    iPodCopy Mac and Windows Versions
    iPod Access Mac and Windows Versions
    PodUtil Mac and Windows Versions
    iPodCopy Mac and Windows Versions
    PodPlayer Windows Only
    If your iPod is set to update automatically take care when connecting back to your computer and an empty iTunes. If it is set to automatically update you will get a message that your iPod is linked to a different library and asking if you want to link to this one and replace all your songs etc, press *No* (or "Cancel" if you are using iTunes 7). Pressing "Yes" (or Erase and Sync in iTunes 7) will irretrievably remove all songs from your iPod. Your iPod should appear in the iTunes source list from where you can change the update setting to manual and use your iPod without the risk of accidentally erasing it. In iTunes 7 Check the "manually manage music and videos" box in Summary then press the Apply button. Don't uncheck Sync Music it will be unchecked by default when you choose the manual setting: Managing Your Songs Manually
    You can also use a keyboard command to prevent your iPod auto-syncing with iTunes. While connecting the iPod to the computer on Windows hold down the Shift + Ctrl keys (on a Mac hold down the Option and Command (⌥ and ⌘) keys). This will stop the iPod from auto-syncing with iTunes and the iPod will appear in the source list. Wait until you are sure the iPod has mounted, and that it will not auto sync and then you can let the keys go. This may take between 20 to 30 seconds depending on your computer. Then check the "Manually manage songs" box.
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync again. I would also advise that you get yourself an external hard drive and back your stuff up in case you have problems again. External drives are comparatively inexpensive these days and you can get loads of storage for quite a small outlay.

  • Diaplay BLOB content (jpeg picture) in XML Publisher 5.6.3

    Hi Gurus,
    I am trying to include BLOB content (jpeg picture) in my RTF template.
    But the pdf output giving blank page.
    I am using following syntax in my picture form field.
    <fo:instream-foreign-object content-type="image/jpg" width="251.8pt"
    height="174.3pt">
    <xsl:value-of select="FILE_DATA"/>
    </fo:instream-foreign-object>
    Can you please correct me where I am doing wrong..?
    Many Thanks..!

    Hello Friends,
    Can anyone help me to resolve this issue please..!
    Below is the error from OPP service log.
    [6/14/10 3:33:34 PM] [UNEXPECTED] [54042:RT1236433] java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.charAt(String.java:687)
         at oracle.apps.xdo.common.encoding.Base64Util.decode(Base64Util.java:54)
         at oracle.apps.xdo.template.fo.elements.FOInstreamForeignObject.end(FOInstreamForeignObject.java:71)
         at oracle.apps.xdo.template.fo.FOHandler.endElement(FOHandler.java:455)
         at oracle.apps.xdo.common.xml.XSLTHandler$EEEntry.sendEvent(XSLTHandler.java:594)
         at oracle.apps.xdo.common.xml.XSLTMerger.startElement(XSLTMerger.java:51)
         at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:181)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
         at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:320)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1051)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:296)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:173)
    [6/14/10 3:33:34 PM] [54042:RT1236433] Completed post-processing actions for request 1236433.
    Many Thanks..!

  • TS3623 AppleTV 2nd gen intermittent audio content out.

    My second generation AppleTV plays all content great to my Toshiba LED TV, but content out to the soundbar is intermittent.  iTune movie "Let Me In" doesn't but "The Replacements" works perfect and so on.  Same thing with Netflicks.  But my Blueray player using netflicks works perfect on every tittle from netflicks.  I have tested all four HDMI ports with the same result.  The AppleTV is dissapointing at this point.  Any Ideas?  Oh, the sound bar is the Polk Audio 3000.
    Dave

    bothfly wrote:
    I have two HDTV's bought in the last 2 years and see no option on either to upscale.
    Your HDTVs panels will be fixed resolution - if the input signal differs the TVs have to up/downscale accordingly.
    AppleTV 1 allows you to set resolution from 480p/576p through to 1080i/p under Settings.
    If your TV is 1080p and you output 720p from AppleTV, the TV upscales automatically.
    If the TV has a 720p panel, but accepts a 1080p input from an AppleTV 1 it will downscale.
    For what it's worth I much prefer my AppleTV 1's. I too feel there's something subjectively worse about video quality on 2, menus in particular look rough edged/pixellated compared to 1- the output may just be sharper (or non anti-aliased menus) than gen 1.
    AppleTV2 definitely buffers/navigates faster and with more responsiveness, but the interface is not as polished as ATV1 and some features are still missing compared to 1 - early days though for ATV2, so I hope software updates will remedy some of these. Having recently read something about possible ATV2 revision with better CPU however, I wonder if it will have the same lifespan software upgrade wise as gen 1 did, though being iOS based this may help apart from hardware dependent things.
    AC
    The point was that I found the ATV1 to be better than the ATV2, IMO of course.

  • Send Blob Contents to Client machine as Attachment

    I am able to see the blob contents in the client window but the file does not show as attachment which is my main purpose-- to give the user the option either to open the file or to save the file on his machine. I am also setting the setHeader as attachment , but nothing happens....and sometimes it shows a dialog box to open my jsp file itself rather than the desired file... sending you the code ..please help
    File file1 = new File("c:\\Test.java");
    byte[] buffer = new byte[(int)file1.length()];
    BufferedInputStream is = new BufferedInputStream(new FileInputStream(file1));
    is.read(buffer, 0, (int)file1.length());
    is.close();
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    baos.write(buffer, 0, (int)file1.length());
    System.out.println(baos.toString());
    byte[] pass = baos.toByteArray();
    response.setHeader("Content-Desposition", "attachment;filename=untitled.java");
    response.setContentType("application/octet-stream");
    //Send content to Browser
    ServletOutputStream servletOut = response.getOutputStream();
    servletOut.write(pass);
    servletOut.close();

    It works,
    you have a type!
    response.setHeader("Content-Desposition", "attachment;filename=untitled.java");
    It should be "Content-Disposition" not "Content-Desposition"
    try it out.
    cheers

  • Display BLOB contents to client

    I want to display the blob contents in the clients window and give him the option either to open or save the contents. I am able to read the contents from Oracle Blob Field and stored the contents in the ByteArrayOutputStream object but I am not able to open the contents for the client. I am using the following code
    Blob blob = resultSet.getBlob(1);
    int length = (int)blob.length();
    byte [] b = blob.getBytes(1, length );
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    baos.write(b,0,length);
    response.setHeader("Content-Disposition","attachment; filename="+baos );
    Please help me

    I am able to see the blob contents in the client window but the file does not show as attachment which is my main purpose-- to give the user the option either to open the file or to save the file on his machine. I am also setting the setHeader as attachment , but nothing happens....and sometimes it shows a dialog box to open my jsp file itself rather than the desired file... sending you the code ..please help
    File file1 = new File("c:\\Test.java");
    byte[] buffer = new byte[(int)file1.length()];
    BufferedInputStream is = new BufferedInputStream(new FileInputStream(file1));
    is.read(buffer, 0, (int)file1.length());
    is.close();
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    baos.write(buffer, 0, (int)file1.length());
    System.out.println(baos.toString());
    byte[] pass = baos.toByteArray();
    response.setHeader("Content-Desposition", "attachment;filename=untitled.java");
    response.setContentType("application/octet-stream");
    //Send content to Browser
    ServletOutputStream servletOut = response.getOutputStream();
    servletOut.write(pass);
    servletOut.close();

Maybe you are looking for

  • Enabling Google Analytics Mountain Lion Server

    Hi everyone, I just recently configured my first Mac server for a public school I'm working in. After setting up the Wiki server I was shocked there wasn't a way to enable Google Analytics, or any javascript for that matter. After a little poking aro

  • Restarting issue (partially solved) - Software version 1.2

    Some users have mentioned a problem with their Ipods restarting on their own for no reason. It has also been suggested that this problem might be triggered by certain songs. I have had the same problem since updating to software version 1.2, AND I HA

  • 802.1x with EAP-TLS Fails on Wired

    Dear Colleagues, I am currently encountering an issue which does not seem to make sense to me and hence checking if anyone of you have come across the same or can provide further input on how to proceed... Setup : 1. Radius Server - Cisco ACS 1113 En

  • XLA processing very slowly

    Hi, when could XLA processing of a particular process can slow down so that XLA logs will pile up and clear very slowly? Please note that during this time,TimesTen operation is normal for all the other processes. Regards Pratheej

  • Can't Sign in to my CC account

    Hi, I can't sign in to my CC account. This fix http://helpx.adobe.com/creative-cloud/kb/unable-login-creative-cloud-248.html still does not work? Thanks