Unpacking error when you try to use UTL_COMPRESS. LZ_UNCOMPRESS to get the text XML 'payload' of a BLOB field

Hi, really appreciate any pointers anyone may have with what I'm trying to do here... the crux of the matter, I have is the following:

* Try to get the contents of a BLOB column directly in PL/SQL, zipped/compressed

Uncompressed data are XML... below is an example quite pinked...

<? XML version = "1.0"? >

<! DOCTYPE TaskConfiguration >

< TaskConfiguration >

< MapKeySet >

< macro keyboard Type = 'C' >

namespace < Key > < / key >

< value > B_O_BrokerChks < / value >

< / macro keyboard >

< / MapKeySet >

< / TaskConfiguration >

* I learned the information in the table of these pages & used all_directories + a pirated version of proc WRITEBLOBTOFILE (also from here) to get this data in a zip file. That worked fine and I can open the file that results with 7 - zip or explore (how I got the sample above)

* I tried a few tweaks to the functions provided here to try to get the data directly into the pl/sql (ideally I would like to be able to enter in a type of XMLTYPE data & query only). However, that's where I'm struggling

* I get the same error as I do with this 1-liner

SELECT UTL_COMPRESS. LZ_UNCOMPRESS (XML) FROM FooBooBazVendorTab where REFERENCE_ID = 19834

ORA-29294: A data error occurred during compression or decompression.

ORA-06512: at "SYS." UTL_SYS_COMPRESS", line 56

ORA-06512: at "SYS." UTL_SYS_COMPRESS', line 226

ORA-06512: at "SYS." UTL_COMPRESS", line 89

29294 00000 - "a data error occurred during compression or decompression."

* Cause: An error occurred during compression or decompression input source.

* Action: Verify that the source data is a set of data compressed or invalid.

Info * @desc to the col de BLOB XML is as follows

* I also read a ' UTL_COMPRESS. LZ_UNCOMPRESS cannot process the file gzip with FCOMMENT' thread here and I tried the potential workaround here who is trying to manipulate the content of the blob to remove the FCOMMENT... but nothing helps. I must say that I am not sure that it's actually my problem.

Details on the Zip file I can glean from 7 - Zip are as follows...

* Any ideas please? (If Oracle decompress may have a problem handling the XML data itself... with my way of thinking on the FCOMMENT being a bit of a furphy?)

* Don't know if the zip file hexview can help, but just in case where is >

I would be very grateful for any help you might be able to give me this.

Rgds Neil

UTL_COMPRESS use of LZ compression, which is a version less compression compared to normal ZIP files (that use LZW, often with additional ' Deflate' or other methods).

Anton Scheffer (member of the these for one) wrote a package to compress and decompress found related to this article on his blog:

Analysis of a Microsoft Word docx and unpack zipfiles, PL/SQL - Blog of AMIS

Tags: Database

Similar Questions

  • When you try to use Windows DVD Maker, get the message that Windows has closed this program

    Installed a new software for video (because the creation of windows dvd won't work) and before its opening, it says windows has closed this program... solutions.  And nothing!  It does this too often with internet explore.  Help!  Do I have to change some parameters of security or something?

    * original title - Windows maintains close everything I try to guess

    Hi twilight,

    ·         Do you have what video creation software installed?

    ·         How long have you been experiencing this problem?

    ·         Have you done other recent changes on the computer?

    ·         What is the exact error message/code?

    ·         The problem occurs with the entire application?

    I suggest you try the steps mentioned below and check if it helps.

    Step 1: Start the computer in safe mode and check if the problem persists.

    If the problem persists in safe mode run clean boot to see if there is a software conflict as the clean boot helps eliminate software conflicts.

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode

    Step 2: No detection system file checker (SFC).

    http://support.Microsoft.com/kb/929833

    Step 3: Temporarily disable the security software.

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you do not disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network during the time that your antivirus software is disabled, your computer is vulnerable to attacks.

  • When you try to use windows update I get this error: error number: 0 x 80070424. In addition, automatic updates in Security Center is disabled, and I can't activate it.

    When you try to use windows update I get this error: error number: 0 x 80070424.  In addition, automatic updates in Security Center is disabled, and I can't activate it.

    Tre,

    A KB was created for the error code 0 x 80070424 that appears when you install Microsoft Windows Update/Microsoft Update. The KB includes an automated Microsoft Fix it 50686 that corrects the problem. Look at the following KB: http://support.microsoft.com/kb/968002>

    Suggest you download and save the fix it.

    Then close all open programs and browsers before running MS fix 50686.msi.

    `~`

    Suggest that you first spread malware as the cause of the problem by following these steps:

    (1) have your system scanned by the antivirus/security suite installed.
    (2) run this tool from Kaspersky: how to remove malware belonging to the family Rootkit.Win32.TDSS

    http://support.Kaspersky.com/viruses/solutions?QID=208280684>
    (3) download, install, update and run full scans with two of these tools free anti-malware:

    MalwareBytes AntiMalware

    http://www.Malwarebytes.org/products/malwarebytes_free>

    SUPERAntiSpyware

    http://SUPERAntiSpyware.com/superantispywarefreevspro.html>

    (4) run the Windows XP and Windows Server 2003 System File Checker (Sfc.exe) tool:

    http://support.Microsoft.com/kb/310747>

    `~`

    If no malware has been detected, there's a Fixit on this page which will reset the Windows Update components:

    How to reset Windows Update http://support.microsoft.com/kb/971058components >

    Suggest you download and Save it. Then, close all the open programs and web browsers.
    Run Microsoft Fixit 50202.msi and choose its default mode.
    After that he finished the race, see if the return code is displayed again when looking for updates.

    If not, then run the Fixit once more and choose his Aggressive mode.
    Restart once it is finished and see if the return code always appears when the updates.

    IF malware is detected, then please post if it has been removed and that the specific name of what has been detected.

    Please let us know if it did or did not help to solve your problem.

    If this ANSWER helped, my post as ANSWER of marking close your thread.

    06/26 / 1108:34:03

  • When you access the virtual machine, getting the error "encountered an error when you try to use one of its virtual hard disks". Help?

    I received the "low disk space error" on a hard drive of the virtual machine dynamic expanding. I have increased my space of virtual hard disk using "My Computer" > manage > storage > "Disk management" and choose "Attach VHD" then resizing to max available (64 GB), and now I can not start the virtual machine. It gives the error: encountered an error when you try to use one of its virtual hard disks. Help?

    Hi NatalieFoster,

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums to get help:

    Windows 7 Virtual PC and XP Mode TechNet Forums

  • When you try to update Windows XP, I get the message: error number: 0 x 80245001

    When you try to update Windows XP, I get the message: error number: 0 x 80245001

    Hello

    If you have configured the installation of the automatic update of your computer, the computer downloads the files necessary for the installation of Windows updates in the background and records them in certain folders on your computer. During installation, these downloaded files are extracted by the requirement by the services of update running on the computer.

    The error you are getting means that some of these extracted files required by Windows Update have been damaged. Now, in order to solve the problem better, we need more information about the computer that has the problem. José asked a few questions about this computer in the first reply to your message, it will be very useful if you could answer these questions.

    Here is some important information that we need:

    1. What is the level of service pack installed on your computer?
    (Click the Start button, click run, type winver, and press Enter to know that information)

    2. what update failed to install with this particular error code?
    (Please refer to the method 1: search for the installation error code in the Windows Update troubleshooting tool section of this article to learn how to check your update history to find this information)

    In the meantime, you can follow these steps on the computer and see if that helps:

    Note: These steps will give the files associated with Windows Update in your computer. Perform these steps would be clear Windows Update history on the computer.

    1. click on Start, click run , and then type Services.msc in the run box and press ENTER. This should open the windows of Services for you.

    2. then find the following three services in the list of Services and stop them (by clicking on it and click on stop) one by one:

    Automatic update service

    (BITS) Background Intelligent Transfer Service

    Cryptographic services

    3. open Windows Explorer and navigate to the following location:

    C:\Windows\

    Rename the folder C:\Windows\SoftwareDistribution in SoftwareDistribution.old

    4. go to the following location:

    C:\Windows\System32\

    Rename the Catroot2 in Catroot2.old folder

    (be careful here, do not rename the C:\windows\system32\catroot folder, you must rename the Catroot2 folder only)

    5. now go back to the Services window and start the services of three you had stopped earlier.

    Now, close all open windows, restart the computer and try updates and install them. If it fails again, please answer with the information that we requested.

    I hope that the information I provide here helps you. If you still need assistance, we know. We are happy to be of assistance.

  • When you try to download adobe acrobat, I get the error message indicating that he met a unexpected faliure

    When you try to download adobe acrobat, I get the error message indicating that he met an unexpected failure. Any suggestions?

    Hello

    Please try to download the software from the URL here download Acrobat products | Standard, Pro | DC, XI, X and let us know how it goes.

    ^ Ani

  • Error when you try to use SQL Express 2012 import/export wizard

    When you try to use 'Import and data export' Wizard SQL Server 2012 Express with Advanced Services, I get the following error message:

    I tried everything I can think of. I tried to copy this .dll on various windows system files, by registering the .dll file, even tried to not downgrading from SQL Express 2016 until 2012... no luck, still the same problem. I tried everything on at least the first five pages of a Google search. I am running it in a box of Windows 7 Pro 32-bit. I used the x 86 version of SQL Express 2012 with Advanced Services and all the features were installed during the installation.

    Any help would be greatly appreciated.

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • 2072 AND 2126 ERROR when you try to use the printer

    ERROR 2072 AND 2126 WHEN YOU TRY TO USE THE PRINTER?

    Hello

    1. What is the brand and model of the printer?

    2. What is the exact error message you get?

    3 when was the last time you were able to use the printer?

    4 did you a recent software or changes to the material on the computer?

    Method 1:

    I suggest you to go through the steps mentioned in the link and the Coachman.

    Printer in Windows problems

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    If the issue does not get resolved, then you can move on to method 2.

    Method 2:

    Tips for solving common driver problems

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-driver-problems

    Hope this helps and keep us informed if you need help.

  • Why do I get an error when you try to use a link in the forum?

    I just tried to use the link that city offered to redirect some users with the login procedure and I got an error:

    The thread specified [0] was not found.

    I had the same thing when you try to use a similar connection a few days previously. They sound like something that I could benefit from it, but I can't ' get to them.

    The URL looks like to Re: logon username determines the page that opens, how can I achieve this?

    Any ideas?

    Thank you

    Gregory

    P.S. I'm using Firefox 3.0.4

    Yes, if you delete the character of diamond, you are directed to a thread in the APEX support forum...

    Thank you

    Tony Miller
    Webster, TX

  • Error when you try to use the system restore: 0x8004230f

    whenever I try to open system restore, I get the error code 0 x 8004230f, I did the SCF scan to see the number of files that could not be fixed what should I do now?

    I installed Norton utilities 2011 & Norton anti virus

    Hello

    There are a variety of reasons for system restore problems

    Norton and Norton product Tamper Protection is the main

    Read about it:

    http://us.Norton.com/support/kb/web_view.jsp?wv_type=public_web&docURL=20101101224849EN&LN=en_US

    http://Service1.Symantec.com/support/sharedtech.nsf/pfdocs/2005113009323013

    You can try restoring the system in safe mode

    http://www.windowsvistauserguide.com/system_restore.htm

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    and malware can interfere with the restoration of the system

    Download update and scan with the free version of malwarebytes anti-malware

    http://www.Malwarebytes.org/MBAM.php

    You can also download and run rkill to stop the process of problem before you download and scan with malwarebytes

    http://www.bleepingcomputer.com/download/anti-virus/rkill

    If it does not remove the problem and or work correctly in normal mode do work above in safe mode with networking

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode with networking with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.
  • 'Could not complete your request because of a program error' when you try to use an effect

    Hi all

    I looked and can't seem to find the ansewer to my very annoying problem. When I try to use the options and the effect in the layers palette, I get the annoying message:

    «Could not complete your request because of a program error. '»

    Anyone using these tools met and someone found a solution for this. It was working fine, then it's funny. I rebooted my machine, photoshop and re-installed the software but stiill not fix. STI is very annoying that I use every day these options in the work that I do.

    See you soon.

    Jon

    You could try resetting the preferences of photoshop:

    http://forums.Adobe.com/thread/375776?TSTART=0

  • Error when you try to use FND_STANDARD. SET_WHO

    Hi all
    I'm new to the development of forms. I am tempted to write a form application to update a custom table in our database of EBS. In a before INSERT trigger, I have the following code:

    BEGIN
    FND_STANDARD. SET_WHO;

    SELECT seq_name. NEXTVAL
    IN: block.item
    FROM DUAL;
    END;


    When I try to insert a new record in the form, I get the following message is displayed:

    FRM-40735: prior INSERTION trigger raised unhandled exception ORA-06508.




    The table I am trying to update includes the following which columns:

    NUMBER OF CREATED_BY (15)
    CREATION_DATE DATE
    NUMBER OF LAST_UPDATED_BY (15)
    DATE OF LAST_UPDATE_DATE
    LAST_UPDATE_LOGIN VARCHAR2 (15 bytes)

    In my forms application, I have the following libraries attached:

    GREEN
    GLOBE
    I
    FNDSQF
    JA
    JL
    PQH_GEN
    VERT1
    VERT2
    VERT3
    VERT4
    VERT5

    I use Forms 6i.

    Does anyone have a solution for this problem?

    Any help would be greatly appreciated.

    Thank you.

    Hello

    I did not base my form on MODEL. FMB.

    Is it important that I start with the MODEL. WBF at the beginning of a new form?

    Yes - Please see the following documents.

    Note: 236803.1 - TEMPLATE.fmb opening error in forms Builder
    Note: 427879.1 - how to customize and compile an Application form (FMB) or library (PLL) seeds?

    Are there other libraries in addition to those listed in the original investigation that must be fixed.

    When I try to open the TEMPLATE. FMB, I get the following errors:

    FRM-18108: unable to load the following items.

    Source module: APPSTAND Source object: STANDARD_PC_AND_VA
    Source module: APPSTAND Source object: STANDARD_TOOLBAR
    Source module: APPSTAND Source object: STANDARD_CALENDAR

    AND

    FRM-10102: Impossible to attach the GREEN of PL/SQL library. This accessory of library will be lost if the module is registered.
    FRM-10102: Impossible to attach PL/SQL libarary GHR. This accessory of library will be lost if the form is saved.

    I have both these libraries on my local machine where I develop the form and they are in the path of forms.

    I have not yet tried to run this form on the server. I'm still developing top locally.

    Thanks for your help.

    Follow these steps:

    -Copy all the files of pll, TEMPLATE.fmb & APPSTAND.fmb of $AU_TOP/resources on your local computer (C:\ABC)
    -Add (C:\ABC) to FORMS60_PATH in the registry
    Open/Close Forms Builder
    -Open the form

    Note: 236803.1 - TEMPLATE.fmb opening error in forms Builder

    Kind regards
    Hussein

  • Error when you try to use the webcam: Please plug in a supported WebCam

    camera on my Dell

    When I try to use the camera on my Dell, message says "please connect WebCam supported.  How can I do this?  The device worked and now it isn't.  I must have changed something when I added the new router.

    You need to reinstall the driver for the webcam.

    Visit the Dell Support Web site, download and install the compatible webcam driver.

  • Error when you try to upgrade a previously installed to the last ESXi 4.1 VIC VIC

    Everyone knows about this problem with ESXi 4.1?

    After installing ESXi 4.1 (new installation on host - not upgraded), at the opening of the VIC on a workstation and connect to the new host ESXi 4.1, it tries to upgrade the VIC as usual, but fails, retune the error: "customer support required files cannot be retrieved from the server.  The identification process will now stop.  Details: the request failed due to a failure of the connection. »

    So I tried to install the VIC by accessing pages web host.  When you click on "Download vSphere Client", he tries to click on the following link (http://vsphereclient.vmware.com/vsphereclient/2/5/8/9/0/2/VMware-viclient-all-4.1.0-258902.exe), instead of download the VIC to the host.  When you try to download the VIC of the host, I tried the IP address and the DNS name, the two are unable to point to the correct location.

    Any thoughts?

    Thank you

    I think I've read that with ESX 4.1 you can not download the VIC of the ESX host, more - you must download from the VMware site.

    I downloaded the 4.1 VIC from VMware and installed without problem for me...

  • When you try to initialize creative cloud app get the message 'no subscription found. ' What should I do?

    I'm the Manager of the team. We bought three licenses. I downloaded everything and when you try to open Adobe InDesign CC 2015 on my machine I received this message: I was connected when I received this message.

    "No subscription found.
    We could not find a subscription Adobe InDesign CC 2015 associated with this identification code Adobe you can buy a new subscription or if you do not have a subscription and are unable to access it, please contact Customer Support.

    You can also choose to start this product at trial.

    Have a different Adobe ID? »

    I tried to disconnect, then reconnect and nothing has changed.

    This document should be useful.

    https://helpx.Adobe.com/creative-cloud/help/manage-teams-membership.html

Maybe you are looking for