How to export database image from form 9i to excel??

I hv some image sotred as blob in database and want to export them from form to excel
here is my code:
DECLARE
MyApplication OLE2.OBJ_TYPE;
workbooks OLE2.OBJ_TYPE;
workbook OLE2.OBJ_TYPE;
worksheets OLE2.OBJ_TYPE;
worksheet OLE2.OBJ_TYPE;
cell OLE2.OBJ_TYPE;
args OLE2.LIST_TYPE;
args1 OLE2.LIST_TYPE;
args2 OLE2.LIST_TYPE;
pictures OLE2.OBJ_TYPE;
picture OLE2.OBJ_TYPE;
BEGIN
--INITIAL CODE ESTABLISHING THE Excel Object and Workbook/Worksheet
MyApplication := OLE2.CREATE_OBJ('Excel.Application');
OLE2.SET_PROPERTY(MyApplication , 'Visible',1);
workbooks := OLE2.GET_OBJ_PROPERTY(MyApplication ,'Workbooks');
workbook := OLE2.INVOKE_OBJ(workbooks,'Add');
---- START Code to create a work sheet and name it as WorkInstruction ---
worksheets:=OLE2.GET_OBJ_PROPERTY(workbook, 'Worksheets');
worksheet:=OLE2.INVOKE_OBJ(worksheets,'Add');
OLE2.SET_PROPERTY(worksheet , 'Name','WorkInstruction');
OLE2.SET_PROPERTY(MyApplication , 'ActiveSheet','WorkInstruction');
---- END Code to create a work sheet and name it as WorkInstruction ---
worksheets := OLE2.GET_OBJ_PROPERTY(MyApplication ,'ActiveSheet');
OLE2.SET_PROPERTY(worksheets , 'Value','WorkInstruction');
args := OLE2.CREATE_ARGLIST;
--- For Writing Image ---
pictures:=OLE2.INVOKE_OBJ(worksheet,'Pictures');
args2:=OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args2, 'images.img');<---- it works only on local path/ url???
picture:=ole2.get_obj_property(pictures,'Insert', args2);
OLE2.DESTROY_ARGLIST(args2);
args1 := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args1, 'C:\Documents and Settings\YinHan.Chan\Desktop\EXAMPLE.xls');
OLE2.DESTROY_ARGLIST(args1);
ole2.release_obj(picture);
ole2.release_obj(pictures);
ole2.release_obj(workbook);
ole2.release_obj(workbooks);
ole2.release_obj(worksheets);
ole2.release_obj(worksheets);
OLE2.RELEASE_OBJ(MyApplication);
END;
Please help
thanks
Message was edited by:
user570542

I am not seeing where you actually get the image from the db to Excel ...... all what you are doing is passing a file name, but did you already download the file to client machine? if so, consider giving full path instead of file name only !

Similar Messages

  • How to export screenshot image from click of button in Flash?

    I have made a simple flash application for lighting deign. But the most essential part I can't get to grips with. I need to the user to be able to capture the contents of the flash file, like a screenshot.
    I have looked at hundreds of guides on how to do this and tried a millions things, but nothing works as I think its a different kind of application of the code. I need a to ask specifically for my purposes I think . Whenever I try something from an article flash says function is undefined. I don't understand how to define it.
    Message was edited by: Vincentleeyorks

    google:  flash <your actionscript version> jpegencoder tutorial

  • How come I can't export a image from lightroom 3 that is 600w x 610h?

    How come I can't export a image from lightroom 3 that is 600w x 610h?

    I think thats what I'm doing.  No luck though. Maybe its a bug?

  • How do I export my images from iPhoto 9.4, to an external drive?

    How do I export my images from iPhoto 9.4, to an external drive?
    mainly to back them up without using time machine.
    Thanks

    Just the Images?
    File -> Export
    This User Tip
    https://discussions.apple.com/docs/DOC-4921
    has details of the options in the Export dialogue.
    To back up the Library: that is images, organisation, edit history etc etc
    Most Simple Back Up:
    Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
    Slightly more complex: Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
    Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store

  • How to export some data from the tables of an owner with integrity?

    Hi to all,
    How to export some data from the tables of an owner with integrity?
    I want to bring some data from all tables in a single owner of the production database for development environment.
    My initial requirements are: seeking information on company code (emp), contract status (status) and / or effective date of contract settlement (dt_liq_efetiva) - a small amount of data to developers.
    These three fields are present in the main system table (the table of contracts). Then I thought about ...
    - create a temporary table from the query results table to contract;
    - and then use this temporary table as a reference to fetch the data in other tables of the owner while maintaining integrity. But how? I have not found the answer, because: what to do when not there is the possibility of a join between the contract and any other table?
    I am considering the possibility of consulting the names of tables, foreign keys and columns above, and create dynamic SQL. Conceptually, something like:
    select r.constraint_name "FK name",
    r.table_name "FK table",
    r.column_name "FK column",
    up.constraint_name "Referencing name",
    up.table_name "Referencing table",
    up.column_name "Referencing column"
    from all_cons_columns up
    join all_cons_columns r
    using (owner, position), (select r.owner,
    r.constraint_name fk,
    r.table_name table_fk,
    r.r_constraint_name r,
    up.table_name table_r
    from all_constraints up, all_constraints r
    where r.r_owner = up.owner
    and r.r_constraint_name = up.constraint_name
    and up.constraint_type in ('P', 'U')
    and r.constraint_type = 'R'
    and r.owner = 'OWNERNAME') aux
    where r.constraint_name = aux.fk
    and r.table_name = aux.table_fk
    and up.constraint_name = aux.r
    and up.table_name = aux.table_r;
    -- + Dynamic SQL
    If anyone has any suggestions and / or reuse code to me thank you very much!
    After resolving this standoff intend to mount the inserts in utl_file by a table and create another program to read and play in the development environment.
    Thinking...
    Let's Share!
    My thanks in advance,
    Philips

    Thanks, Peter.
    Well, I am working with release 9.2.0.8.0. But the planning is migrate to 10g this year. So my questions are:
    With Data Pump can export data just from tables owned for me (SCHEMAS = MYOWNER) parameterizing the volume of data (SAMPLE) and filters to table (QUERY), right? But parameterizing a contract table QUERY = "WHERE status NOT IN (2,6) ORDER BY contract ":
    1º- the Data Pump automatically searches for related data in other tables in the owner? ex. parcel table has X records related (fk) with Y contracts not in (2,6): X * SAMPLE records will be randomly exported?
    2º- for the tables without relation (fk) and which are within the owner (MYOWNER) the data is exported only based on the parameter SAMPLE?
    Once again, thank you,
    Philips
    Reading Oracle Docs...

  • How do I import images from my hard drive without losing resolution? My original files after import are significantly smaller. What should I do?

    How do I import images from my hard drive without losing resolution? My original files after import are significantly smaller. What should I do?

    Hi Keith, and all others chiming in, I do have the correct option checked in advanced settings telling iPhoto to copy the images into the library. What is a refernced library? Perhaps this is where I am getting confused. I exported my entire photo library from an old iMac5 to my external hard drive, from there I attempted to import the entire library to my new iMac. Am I overlooking an obvious and easy way to import from the hard drive to the new iMac--I dragged the entire photo pholder from the hard drive to the open window of iPhoto on the new computer. Now, I only get preview file sizes in iPhoto, unless I have my external drive open. Perhaps I need to import the original images from the hard drive in a different way...?! (This is making me feel pretty stupid.)

  • How to export antialiased images of PDF pages?

    Hello all:
    I recently upgraded to Acrobat XI, and I am surprised to see that you STILL cannot export (or Save As) PDF pages to images that are ANTIALIASED!? Does anyone have a simple answer for this that doesn't involve a workflow of more than 5 steps? This is so headslappingly obvious a need that I'm at a loss for what Adobe's engineers are thinking when programming the Save As Image functions...
    I posted this question all the way back in 2009 (see post at http://forums.adobe.com/message/2411677#2411677), and still the answer is the same: when Acrobat saves pages as TIF or JPEG files, they are ALIASED. Who would want that? Who?! WHY?
    It's simply exasperating that Adobe does not include a tiny, little check box that says "Antialiased" in the "Save As TIF / JPEG Settings" dialog box where you set all kinds of parameters like resolution and colorspace....If the exporting process would just include antialiasing, you could set the resolution you desire and YOU'RE DONE.
    But, as far as I can tell, you still have to perform some kind of gymnastic routine like:
    Open the PDF and select all the desired page thumbnails to export.
    Right-click and choose Extract Pages. Make sure to check "Extract Pages as Separate Files."
    Export all the separate PDFs for each desired page into a folder somewhere.
    Open Photoshop and start recording an Action.
    Open one of the PDFs and specify the desired resolution.
    Save it in a desired location in an image file of your choice (TIF/JPEG).
    Stop recording the Action.
    Delete the resulting image you made of the test PDF page to avoid an overwriting error later when running the batch (or check box to overwrite in batch dialog).
    Run the Action in Batch mode on the entire folder of separate PDF pages.
    This is preposterous.
    Adobe, please get the simple things right for everyday low-level users before adding feature bloat to Acrobat with each passing version. Please.

    Hi Dave: Good points about reducing feature bloat and installer footprint taking priority for most users...
    However, if, as you say:
    Acrobat and Adobe Reader are developed as a standalone product family....
    Ultimately, since you can get an AA bitmap of a PDF file by just opening it in Photoshop etc., there is very little commercial demand for Adobe to include that feature in Acrobat.
    then, those people who do not have Photoshop (because AA is designed to be standalone, right?) cannot access antialiasing in exporting PDF images at all! Your point is exactly my point.
    If there is so little demand, then why include Export to Image functionality at all? Just eliminate it completely to save installer footprint space!....But, then, I'm sure you realize people would complain about that immediately, no? So, again, why include it at all when it's only able to export aliased images which virtually nobody is going to want? That's very passive-aggressive toward's Adobe's users. Nobody really benefits from half-baked features only begrudgingly included in software to placate the vocal minority of users who would otherwise miss it. I realize this isn't a huge issue for most users, but I think this points to a larger mentality within Adobe and the software industry in general....
    There is a huge number of people working in corporations that own legacy versions of AA who have not and will not likely subscribe to Creative Cloud! (e.g.: The 100-person architecture/engineering firm I worked at for 10 years had one copy of Photoshop on a community graphics workstation and made everyone use a sign-up sheet to access it.)
    Also, it's nice in theory that PDFs are supposed to be a print format. But, many many times, AA users have to make images (for PowerPoint, blogs, client portals etc.) from PDFs that they did not originally create and do not have the source files to recreate or export as images from their originating software. PDF export to images from Acrobat is their only choice without access to Photoshop.
    And, if AA is truly designed to be a stand-alone product, untethered from the capabilities of the entire suite of functionality across Creative Cloud apps, then a modular plug-in approach to controlling feature bloat would be more appropriate, no?
    For example, AutoCAD is a giant, sprawling application for technical drawing. And AutoDesk has recognized over the years that AutoCAD is used by many industries, each with special needs unneccesary to other industries' user base. So, they've created add-on packs of plug-ins that transform vanilla AutoCAD into AutoCAD for Architecture, Civil Engineering, Electrical Engineering, Bridge Design, Home Building, etc....see where I'm going?
    And Adobe has a far larger installed user base for Acrobat than AutoDesk does for AutoCAD! How about plugins like AA for Technical Publishing, AA for 3D modeling, AA for Presentations?...

  • How do I get images from Aperture into print shop for mac?

    Friends,
    I have Print Shop for Mac and Aperture. How do I get images from Aperture into Print Shop? I'musing managed images with previews. Is there any option besides exporting to the desktop and importing?
    Thanks!
    Steve

    if you have previews turned on in Aperture and they're all genereated, you can simply drag-n-drop them into any application (just about). drag-n-drop is essentially the same as copy/paste as long as the application is setup to accept "drops" onto its windows.
    otherwise, if you're running Leopard (10.5) as your version of Mac OS X, when you import (or whatever it is in PrintShop), you should get a file selection dialog. from here, scroll down the left-hand side bar set of icons. near the bottom is a group called "Media". click on the triangle to open the group, choose Photos, and from here you should see an Aperture icon. click this and you'll see your whole library (or at least the portion of it that you have previews generated for. select the photo you want and viola!
    scott

  • How to move database objects from one user to another user

    Could someone help how to move database objects from one user to another user
    Thanks in advance

    Thanks a lot for the reply.
    Actually I wanted to know whether there is any command to change the owner ship of the table.
    For ex table1 belongs to user1. can the owner of table1 to be changed to owner2.
    directly using an oracle command. I knew that it can be done using import and export, since the table was 200 million thought the rename command would be faster instead of import and export.
    Thanks Billy for letting me know that it is not possible using oracle query.

  • How to remove corrupt image from iPhoto

    Somewhere in my photo library I have a photo that iPhoto really doesn't like! I want to know how to remove this image from my library, possibly by deleting it via Finder.
    When I scroll through my photos in iPhoto the software hangs momentarily, and then crashes completely, whenever it gets to this particular image. When I try to export my photos (for backup purposes) iPhoto always crashes when trying to export this same image.
    The problem has appeared with one of the recent updates to iPhoto, when I originally imported this image I could see and export the image just fine. The same issue is preventing me from migrating my photo library to the new Photos app - the import process that runs when I first launch Photos always crashes at the same point, presumably because of this same image file.
    I am unable to remove the image by deleting it via iPhoto because I can't get iPhoto to display the image without crashing, please can anyone suggest another way to get rid of it.

    I've been trying to post details from the crash report here, but the forum software tells me that the message contains 'an invalid character' - which character is invalid? Who knows...

  • How to capture an image from my usb camera and display on my front panel

    How to capture an image from my usb camera and display on my front panel

    Install NI Vision Acquisition Software and NI IMAQ for USB and open an example.
    Christian

  • How to get all images from folder in c#?

    I am trying to get all images from folder. But it is not executing from following:
     string path=@"C:\wamp\www\fileupload\user_data";
                string[] filePaths = Directory.GetFiles(path,".jpg");
                for (int i = 0; i < filePaths.Length; i++)
                    dataGridImage.Controls.Add(filePaths[i]);
    Please give me the correct solution.

    How to display all images from folder in picturebox in c#?
    private void Form1_Load(object sender, EventArgs e)
    string[] files = Directory.GetFiles(Form1.programdir + "\\card_images", "*", SearchOption.TopDirectoryOnly);
    foreach (var filename in files)
    Bitmap bmp = null;
    try
    bmp = new Bitmap(filename);
    catch (Exception e)
    // remove this if you don't want to see the exception message
    MessageBox.Show(e.Message);
    continue;
    var card = new PictureBox();
    card.BackgroundImage = bmp;
    card.Padding = new Padding(0);
    card.BackgroundImageLayout = ImageLayout.Stretch;
    card.MouseDown += new MouseEventHandler(card_click);
    card.Size = new Size((int)(this.ClientSize.Width / 2) - 15, images.Height);
    images.Controls.Add(card);
    Free .NET Barcode Generator & Scanner supporting over 40 kinds of 1D & 2D symbologies.

  • How can print a report from form 6i,  when I press a button?

    hi Friends,
    How can print a report from form 6i, when I press a button?
    When i press a button from Form 6i, the report should print through printer.
    I have done it by using report parameter DESTYPE Printer but problem is that when I press a button printer dialogue box appear and then I give command Print to printer, I don’t want to show Printer dialogue box.
    I want when I press a button form Forms 6i , printer will print my report directly.
    Please send me the solution of this problem.
    Best regards,
    Shahzad

    Hi
    If You are using Client server application then to passing to Add all Print Parameter in the Host Command.
    Means Print command in unix to Host(lp.............) and Other Parameter to file name of the report to print.
    If You not Use Client Server Application the Also Passing a Host Command in Button-Pressed Event and Run.

  • How can we export the data from OAF Page to Excel instead of .csv or .txt

    Hello,
    How can we export the data from OAF Page to Excel instead of .csv or .txt
    When i click on the export button it is exporting to txt file, But i need to export the data into Excel by default
    Please help me
    Thanks in advance
    Thanks,
    Raju
    We have changed the below profile option to get the data in excel by default
    Profile Name Export MIME type
    Profile Code FND_EXPORT_MIME_TYPE+
    Existing Value: text/tab-separated-values+
    Change as: Excel
    Thank you,
    Raju
    Edited by: 1006649 on May 21, 2013 10:55 AM

    We have changed the below profile option to get the data in excel by default
    Profile Name Export MIME type
    Profile Code FND_EXPORT_MIME_TYPE+
    Existing Value: text/tab-separated-values+
    Change as: Excel
    Thank you,
    Raju

  • How do I remove images from aperture?

    Totally new to apple and aperture so I apologise if this seems like a somewhat noob question but how do I remove images from aperture (using the latest version, 3.4.1)? Coming from a PC and using lightroom I'm used to being able to remove images in two ways:
    - removing the image from the "library", so that it no longer shows up in the program at all but is still on your hard drive (when I say removing it from the program entirely, I mean entirely, i.e. not sitting in a trash can or some other place where it's still taking up memory)
    - deleting the original image off the hard drive
    Is it possible to do either of these things in aperture, on both just a single image or a selection of multiple images, and if so how? I've tried googling this already and am getting a bunch of mixed solutions, none of which have really worked so far, so any answers would be appreciated. Thanks!

    The answer partially depends on whether you have a managed or referenced library. Since you're totally new to Aperture, I'm assuming you have a managed library since that's the default.
    FYI: Managed means Aperture handles image files and places them inside the library file. Referenced means you manage the image files and Aperture only points to (references) them.
    For a managed library, select an image you want to delete. Type command-delete. (That's the reverse delete key next to the "=" key). (You can also right-click an image and choose Delete Version) That will remove the images from their Project and place in the Aperture Trash. They're still taking up space in the Trash. If you really want them gone for good, right-click the Trash in the library pane and select Empty Trash. Poof.
    For a reference library, I forgot the exact details since I don't use this type of library, but you'll be asked (or can check a box) to delete the original file from the disk.

Maybe you are looking for

  • The error 16 when launching Photoshop elements 12

    Ok I keep getting the error 16 when launching Photoshop elements 12, 1) It says to re-install (did that and did not work twice), there is also the Cache.db unlock (did that - not a solution either)... I need more information on what the problem could

  • Calendar date range limit?

    All, I've set up a calendar region. The underlying data is all contained in the month of November; however, when a user first goes to the calendar, it defaults to the current month. Reading through the documentation, I thought I could fix this by set

  • I want to launch a Bo report whith a URL and render it back to the web page

    I want to launch a Bo report whith a URL and render it back to the web pages in HTML format? And the report have parameters as well. Exampel: If a have report in InfoView that i want to se in my web page i just click a link button with my URL. And i

  • Explain scroll skin

    Copying an example I was able to get a scroll bar to appear.  I can understand the theory that removing this from components will make them lighter weight and the functionality can be added back when needed.  But I would like to know why it looks lik

  • Outer Dial in Color Wheel Disappeared

    SpeedGrade 2014.2 Although the vertical sliders are still there, are more intuitive and I can use them, the outer dials in the color wheel have disappeared. I have checked the update notes but cannot find any reference to these dials being intentiona