OLE CONTAINER - BLOB

Hi,
I have a Blob column in my table. I am displaying the blob column in a OLE Container. To open the object inside the OLE, I just doucle-click on it.
For example, my blob column has PDF, JPG files, etc... then i double-click, and the PDF or JPG file opens normally.
But now I don't want to show the OLE Container in the canvas. It will have a button to open the content of the OLE Container.
What's the commnad to do it? (what command is executed when i was double-clicking?)
Thx...

Hi SYSDATE,
I'm trying to insert pdf via ole_container without success.
Could you pls send me a copy of this forms?
Thank you...

Similar Messages

  • How can I read a blob created with ole container in forms 6i in forms 10g

    In forms 6i I used ole container to save a document (excel, pdf, word...) into a blob column.
    I want to migrate my application in forms 10g and I read that I have to use webutil_File_transfer.db_to_client and after webutil_host.blocking to see the document.
    In the same blob column I can have multiple type of document. How Can I know wich application to use to open the document ?
    Even if I know the extension of my document I'm enabled to open the file ???

    When you click a C/S OLE object, it is opened with its default application's owner, no ?
    So if the OLE object is opened by Excel, the extension is .xls.
    In any case you have to open the OLE object with its "mother" application if you want to save it as a file, so there is no problem at all to decide with extension to use.
    If you read this article : http://sheikyerbouti.developpez.com/webutil-docs/Webutil_store_edit_docs.htm you can see that the filename is automatically opened with the corresponding application.
    Francois

  • Create a Word document in a OLE container, save it in a BLOB and display it in a rep!

    When im saving a worddoc like a OLE container in a BLOB and trying to display it in a report the text does not look exactly like it did in word. What i happening whit the doc while saving it into the BLOB and tryning to display it in another OLE container?
    Best Regards
    Fredrik Hammarqvist

    You might want to add a browser layer over your flex
    application and let the browser manage the file types. I personally
    use the HTML component from
    http://drumbeatinsight.com/.

  • Retriving a blob after it was loaded by OLE container in forms 6i

    We had forms6i application which has loaded documents into a blob column in the database using OLE container. We are able to retrive the blob from the OLE container on the forms6i, However when we are trying to retrive the same blob using PL/sql into the OS level file , we are unable to open the file as it not able to de-serialize the blob loaded into the database by an OLE container on the forms 6i
    we have loaded around 5000 documents in the database using forms 6i application.
    These were loaded during normal application usage and added mannually by invoking the forms application and then saving.
    Our requirement is now to retrive these documents all at once using automated scripts. if Blob data is inserted using forms 6i OLE container then is there any automated exteneded procedures to retrive those blobs using PL SQL script or any other method.
    my Forms version:Forms 6.0.8.25
    My Databae : Oracle database 10.2.0.4
    Thanks in advance.

    When you click a C/S OLE object, it is opened with its default application's owner, no ?
    So if the OLE object is opened by Excel, the extension is .xls.
    In any case you have to open the OLE object with its "mother" application if you want to save it as a file, so there is no problem at all to decide with extension to use.
    If you read this article : http://sheikyerbouti.developpez.com/webutil-docs/Webutil_store_edit_docs.htm you can see that the filename is automatically opened with the corresponding application.
    Francois

  • 6i to 9i conversion OLE container stored in a LONG RAW column to BLOB

    I need to automate the migration of data stored in a long raw column to a blob column. The objects were stored in the long raw column using an Oracle Forms 6i OLE container. There is also multiple object types stored in the column, ie (word, excel, images, but mostly pdf's). I have looked at the webutil package but cannot figure out how to read the long raw column since ole containers are obsolete in 9i. I have a lot of records that need migrating and need help.
    Thanks,
    J. Broome
    [email protected]

    It doesn't appear that I am able to attach the PDF files.  Can you supply your email (or I can supply mine) so I can send you the three files:
    1.)  A good PDF (manually extracted from our old application)
    2.)  Dump of the same PDF file (includes header/footer info)
    3.)  A partially fixed PDF file (but some of the pictures / pages are cut off - specifically pages 3,5,9,10,12,14)
    The way that we have tried to fix the file (in example 3 above) is the following:
    a.)  Find the First Occurrence of "%PDF-"
    b.)  Find the Last Occurrence of "%%EOF"
    c.)  if the first "%PDF-" is found AND the last "%%EOF" is found, then
       i.)  Remove all data before the first %PDF-
       ii.)  Remove all data after the last %%EOF
    Let me know if you need any other information.
    Thanks,
    Mike

  • OLE Container linked documents conversion to Web Forms

    We have developed a form within our Oracle 6i application which allows users to navigate directly from the Forms application to relevant documents. We use an OLE container and the documents (Word, Excel, PDF etc) are linked rather than embedded in the database. I understand that OLE containers are not supported within Web Forms. I'd like to maintain the functionality within the application and welcome any suggestions. I was hoping that Web_Util would provide this but it doesn't appear so. We have over 12000 embedded references to documents which we'd like to extract or retain. A possible solution would be to extract the filenames and paths/locations and have them available as a hyperlink.
    I have no idea how to extract the file from the database blob column. There are many samples of code on Metalink to extract the document and store it locally but that's not what we want.
    We use an OLE container (now Obsolete) with the OLE Tenant Type set to Linked, and OLE Tenant Aspect set to Icon. So the actual document is not embedded in the database but somehow the Application (Word Excel etc) knows the filename and path when you double click on the Icon.
    I would like to extract the filename/path from the blob column and transfer it to another column which will be used as a hyperlink.

    The documents are NOT stored in the database, they are linked. We have the documents on the network but have no idea which documents match to which unique record id on the database. Hence the need to extract the name and location of the files. Some ids can have up to 10 different documents attached to them
    The use of OLE Tenant type "Linked" was really a Forms 6 version of a hyperlink.
    I've got a hyperlink working for future use in attaching new documents to a record id. I am worried that we've lost the record of old links. I don't understand how Oracle can make something obsolete without at least providing an upgrade method.
    Hope this makes it clearer.
    Lesley

  • OLE Container and Forms9i

    I have a table containing a blob field. The field have texts and pictures in Acrobat reader format and JPEG format.
    The forms 6 use an OLE Container to manipulate these data's.
    I would like the have the same kind of possibilities in the Web environment.
    I don(t have any ideas how to proceed (I don't have write any OLE script).
    Did someone have an idea how to proceed ?
    Thanks

    Thanks for the answers I have received.
    I'am implementing the following solution:
    1) Download the document stored in the BLOB to a local temporary document (via webutil_file_transfert.db_to_client_with_progress procedure)
    2) Start Acrobat Reader and load the document (via CLIENT_HOST procedure)
    3) Upload the document to the database.
    My problem is: The document in the temporary file contains an OLE Container Header !
    I need to clean up all the documents store in the BLOB in order to be able to open them.
    Any ideas ??
    Thanks

  • Problems with OLE Container in QUERY

    Hi all,
    I have problem with OLE Container when I am trying to retrieve data from the database. Inserting is no problem and commit is done. I am doing it with
    initialize_container('block.ole_object','C:\test.doc');
    I have only one column of BLOB type and it is last in the block as it was suggested somewhere on the forum.
    When I am trying to retrieve the already inserted data I get error with the following
    Description:
    FRM-40505: Oracle ERROR: unable to perform query and CTRL+F1 says the following:
    ORA-00932: inconsistent data types: expected got
    The forms and the database are as follow:
    Forms [32 Bit] Version 6.0.8.24.1 (Production)
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.2 - Production
    I need immediate help!!!

    This may be related to the 10g database, I'm not sure as there is no way for me to test it. I know that it works with a 9i database.
    One thing to check is to make sure that you don't have the FORMS60_DISABLE_DESCRIBE set to 1 within the Oracle registry.
    If this doesn't work, your only option might be to use a LONG RAW instead of a BLOB column type in the database.

  • Using RealPlayer control in OLE container to play video

    Hi everyone,
    I am a student and I want to use Oracle OLE control in Oracle forms to implement some multimedia data. I choose RealPlayer G2 control / Window media Player / even Oracle Video Control to do this. But I have one common problem that I can't insert those control object in the OLE container automatically(in the designer).
    How can I have the multimedia control object start when forms runtime?
    Also, how can I store and retrieve data using that multimedia control object?
    Anyone can help me?
    Thx.
    Carol

    Hello,
    I have a similar problem. I want to extract a blob filed with ole from forms with other tools to a file, but the new file then has extra informations about the ole-object. Due to MetaLink there seems to be no possibility to strip these extra bytes off the data.
    Please let me know if you have a solution to this problem.
    Greetings,
    Thorsten.

  • How Can I View PDF Document In OLE Container , Not in Acrobat

    HI,
    I want to store The PDF File (Document) In Oracle Database, and want to view it in OLE Container, Not in Acrobat Reader while Retrieving Record Through Oracle Forms6i.
    Can any one suggest me how to do this job, by steps.
    Thanks.

    Right or control click a PDF file you have on the hard drive then click Get Info.
    Click the pop up menu next to: Open with
    Select Preview
    The click: Change all

  • How to revert to diagnostics.wadcfg configuration from wad-control-container blob.

    Hello all,
    In our project at some point in the past we have enabled Diagnostics module for getting our log entries in Azure Storage. We added <Import moduleName="Diagnostics" /> to ServiceDefinition.csdef file and then enabled logs transfering and performance
    counters gathering in WebRole.OnStart method via DiagnosticMonitor.Start():
    DiagnosticMonitorConfiguration cfg = DiagnosticMonitor.GetDefaultInitialConfiguration();
    cfg.OverallQuotaInMB = 8192;
    cfg.Logs.ScheduledTransferLogLevelFilter = LogLevel.Verbose;
    cfg.Logs.ScheduledTransferPeriod = TimeSpan.FromSeconds(30);
    cfg.Logs.BufferQuotaInMB = 1000;
    // Define performance counter configuration.
    foreach (var counterName in PERFORMANCE_COUNTERS_NAMES)
    PerformanceCounterConfiguration perfCounterConfiguration = new PerformanceCounterConfiguration();
    perfCounterConfiguration.CounterSpecifier = counterName;
    perfCounterConfiguration.SampleRate = TimeSpan.FromSeconds(5);
    cfg.PerformanceCounters.DataSources.Add(perfCounterConfiguration);
    cfg.PerformanceCounters.BufferQuotaInMB = 1024;
    cfg.PerformanceCounters.ScheduledTransferPeriod = TimeSpan.FromMinutes(1);
    DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString", cfg);
    Then using Windows Azure Management Portal we activated Verbose monitoring mode and added several additional performance counters there in order to try the feature. I assume that doing that through the portal we actually modified wad-control-container blob
    so we got new performace counters configuration.
    Later we've realized that it would be better to manage all diagnostic configuration in diagnostics.wadcfg. We removed the code from role start and added diagnostics.wadcfg file to the project that declares the same we did before via code. When we redeployed
    we saw that the configuration remained as it was before - it didn't change at all. It still included new performance counters we added through the portal. It is because the order of precedence, where wad-control-container blob has the highest priority. So
    we deleted all the blobs from wad-control-container in order to revert back to diagnostics.wadcfg and redeployed the service. New blob was created in wad-control-container. It included everything from diagnostics.wadcfg as we expected and
    again we saw these custom performance counters we added via portal time ago. See below the blob content:
    <?xml version="1.0"?>
    <ConfigRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <DataSources>
    <OverallQuotaInMB>8192</OverallQuotaInMB>
    <Logs>
    <BufferQuotaInMB>1024</BufferQuotaInMB>
    <ScheduledTransferPeriodInMinutes>1</ScheduledTransferPeriodInMinutes>
    <ScheduledTransferLogLevelFilter>Verbose</ScheduledTransferLogLevelFilter>
    </Logs>
    <DiagnosticInfrastructureLogs>
    <BufferQuotaInMB>1024</BufferQuotaInMB>
    <ScheduledTransferPeriodInMinutes>5</ScheduledTransferPeriodInMinutes>
    <ScheduledTransferLogLevelFilter>Warning</ScheduledTransferLogLevelFilter>
    </DiagnosticInfrastructureLogs>
    <PerformanceCounters>
    <BufferQuotaInMB>4096</BufferQuotaInMB>
    <ScheduledTransferPeriodInMinutes>5</ScheduledTransferPeriodInMinutes>
    <Subscriptions>
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\Memory\Available Mbytes</CounterSpecifier>
    <SampleRateInSeconds>10</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\Processor(_Total)\% Processor Time</CounterSpecifier>
    <SampleRateInSeconds>10</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\ASP.NET Applications(__Total__)\Requests/Sec</CounterSpecifier>
    <SampleRateInSeconds>5</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\ASP.NET Applications(__Total__)\Requests Executing</CounterSpecifier>
    <SampleRateInSeconds>5</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\ASP.NET Applications(__Total__)\Requests In Application Queue</CounterSpecifier>
    <SampleRateInSeconds>5</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\ASP.NET Applications(__Total__)\Requests Failed</CounterSpecifier>
    <SampleRateInSeconds>30</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\ASP.NET Applications(__Total__)\Requests Timed Out</CounterSpecifier>
    <SampleRateInSeconds>30</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\ASP.NET\Requests Rejected</CounterSpecifier>
    <SampleRateInSeconds>30</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\ASP.NET\Worker Process Restarts</CounterSpecifier>
    <SampleRateInSeconds>600</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <!-- OLD unnecessary counters that were added manually through the portal START-->
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\Memory\Available MBytes</CounterSpecifier>
    <SampleRateInSeconds>180</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\Web Service(_Total)\ISAPI Extension Requests/sec</CounterSpecifier>
    <SampleRateInSeconds>180</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\Web Service(_Total)\Bytes Total/Sec</CounterSpecifier>
    <SampleRateInSeconds>180</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\ASP.NET Applications(__Total__)\Errors Total/Sec</CounterSpecifier>
    <SampleRateInSeconds>180</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <PerformanceCounterConfiguration>
    <CounterSpecifier>\ASP.NET\Requests Queued</CounterSpecifier>
    <SampleRateInSeconds>180</SampleRateInSeconds>
    </PerformanceCounterConfiguration>
    <!-- OLD unnecessary counters that were added manually through the portal END-->
    </Subscriptions>
    </PerformanceCounters>
    <WindowsEventLog>
    <BufferQuotaInMB>0</BufferQuotaInMB>
    <ScheduledTransferPeriodInMinutes>0</ScheduledTransferPeriodInMinutes>
    <Subscriptions />
    <ScheduledTransferLogLevelFilter>Undefined</ScheduledTransferLogLevelFilter>
    </WindowsEventLog>
    <Directories>
    <BufferQuotaInMB>256</BufferQuotaInMB>
    <ScheduledTransferPeriodInMinutes>5</ScheduledTransferPeriodInMinutes>
    <Subscriptions>
    <DirectoryConfiguration>
    <Path>C:\Resources\directory\ac17d63416cf41c8acfebbbcb3d90052.Mbo.Services.Web.DiagnosticStore\CrashDumps</Path>
    <Container>wad-crash-dumps</Container>
    <DirectoryQuotaInMB>256</DirectoryQuotaInMB>
    </DirectoryConfiguration>
    </Subscriptions>
    </Directories>
    </DataSources>
    <IsDefault>false</IsDefault> <!-- DEFAULT IS SET TO FALSE AGAIN -->
    </ConfigRequest>
    We tried to directly edit this XML. We removed redundant counters and changed IsDefault to "true" value in the XML and updated the blob in the wad-control-container using Azure Management Studio. Next time we redeployed the service - the counters
    again appeared in the configuration and IsDefault reverted to false again.
    Does anyone know how to permanently revert to managing diagnostics configuration only via diagnostics.wadcfg file and force the Azure to forget about manual edits we did via the portal?
    We use Azure SDK 1.4. 
    Thanks in advance for any insights!
    Vitaly

    Hi Vitaly,
    Did you try to change diagnostics configuration in VS? Like this:
    I suggest you could click the "Edit", and select your diagnostics metrics. Also, I want you double check your  re-deployment  project whether is right. Please try it.
    By the way, I suggest you could upgrade your SDK version and refer to this sample:
    http://www.windowsazure.com/en-us/develop/net/common-tasks/performance-profiling/
    http://msdn.microsoft.com/en-us/library/windowsazure/hh411542.aspx
    Any question or result, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I can't import a table contains BLOB column  from one user to another user.

    1) I create two user both have connect role,and each has its own tablespace, DDL:
    create user d2zd identified by d2zd default tablespace d2zd quota unlimited on d2zd account unlock;
    grant connect to d2zd;
    create user d3zd identified by d3zd default tablespace d3zd quota unlimited on d3zd account unlock;
    grant connect to d3zd;
    2)Then enter oracle as d2zd and create a table contains BLOB column and insert data to the table.
    3) export d2zd as follow:
    exp d2zd/d2zd file=d2zd.dmp
    4) import to d3zd as follow:
    imp d3zd/d3zd fromuser=d2zd touser=d3zd file=d2zd.dmp
    the question is the table with BOLB colum can't be import,
    it says:have no privilege on tablespace d2zd.
    How can I import a table contains BLOB column from one user to another user?

    Hi - the reason for as our friend already told ist that a blob can be stored outside of the table segment, in another Tablespace, This is for performance reason.
    Sou you would need to have Quota on two tablespaces.
    the one which holds the table segment the other which holds the blob(segment).
    Regards
    Carl
    Message was edited by:
    kreitsch

  • Select query taking 30 sec to fetch data from table containing BLOB column.

    Hi Friends,<o:p></o:p>
    Please help me...<o:p></o:p>
    I have 15 columns in a table, in that 2 columns containing blob (images).<o:p></o:p>
    More than 22 lakhs records are in a table.<o:p></o:p>
    While i am try to fetch data from this table it nearly takes 25~30 sec to execute that query.<o:p></o:p>
    When i deleted the two columns containing blob and i tried its executing fast .<o:p></o:p>
    I should not change the table schema.<o:p></o:p>
    Views also i created and indexes also there in a table.<o:p></o:p>
    How can i improve the query execution speed?.<o:p></o:p>

    And how large is the size of BLOB data in your table? If it's several giga bytes, then the time is simply required to read the amount of data from disk and to transfer it to the Client.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Opening pdf file in ole container in forms 6i

    Dear Sir,
    I have am working on Rental property system , i have to save the PDF of original agreement document along with the agreement transaction data entry form, but when i open those agreement in adobe writer there is issue that user can save as its copy to the local machine, to prevent it i m opening that pdf file into the OLE container rather than adobe reader software.
    but the problem i am facing is that, the pdf is opening in the ole container but it is only showing its first page only even if the agreement is of multiple pages, how can navigate to other pages? any idea? the sample code of oracle form is attached herewith which i am using for loading the pdf into ole container.
    waiting for your earliest response.
    Regards

    You need to switch from using VB6 at this point.  As of the latest update, VB6 compiled applications will stop working with Adobe Reader. See the following KB: 
    PDF applications built with VB6 don't work with Acrobat 11.0.07

  • Forms 6i : Ole Container : Locking problem

    We have a form in which user can attach all sorts of documents that are then saved in the database.
    Once in a while we have a locking problem; when 2 users try to open the same document, the second one first gets a 'Could not reserve record (2 tries). Keep trying?'. When clicking 'No', the next error message is 'Frm-40501 : unable to reserve record for update or delete', and the form cannot be used anymore. He keeps complaining about the reserved record.
    I've been looking into this problem but cannot seem to find a lot of help.
    Does anyone have an idea how to solve this locking problem?
    I have tried the following things:
    * setting the block to locking mode 'Delayed' => we ended up having duplicate records.
    * Changing properties of the ole-container (In Place Activation, Inside Out support, ...).
    Forms version is 6.0.8.13.0, database 8.0.6.0.0.
    Any help is appreciated.

    that seems to be a normal locking problem. Do you have tried to work with an ON-LOCK trigger ? (e.g. first to see, when locking will occur, second for implementing an own locking-behaviour, maybe with a SELECT for UPDATE)
    Or do you think, that there is something special with your OLE-programming ?
    Gerd

Maybe you are looking for