Is there a way to compress using Java deflator & uncompress using UTL ?

hi,
I was wondering if there is a way to compress using Java deflator on the java side & then uncompress in the stored procedure. UTL_COMPRESS.LZ_UNCOMPRESS(BLOB) ?
I tried that, but I'm currently getting Invalid data exceptions..
The Other option is to use Java Inflator in the Java stored procedure. But I want to avoid java stored procedures.
Thanks in advance.
/// java side
String inputString = loadXML (inputfile);
byte[] input = inputString.getBytes("UTF-8");
byte[] output = new byte[inputString.length()];
Deflater compresser = new Deflater(Deflater.BEST_SPEED, true);
compresser.setInput(input);
OracleCallableStatement insertALLStatement = (OracleCallableStatement) con.prepareCall(insertALLSQL);
InputStream stream = new ByteArrayInputStream(data);
insertALLStatement.setBinaryStream(1, stream, (int)data.length);
insertALLStatement.execute();
// pl sql
create or replace PROCEDURE INSERTBYTES
( compressed IN BLOB
) AS
uncompressed:=UTL_COMPRESS.lz_uncompress (compressed);
...

That depends.
Does Java Deflator use the same compression technique as UTL_COMPRESS.LZ_UNCOMPRESS? i.e. is it using Lempel Ziff compression algorithms. If so, then, yes, there's a possibility it could work, however it also depends if the Java Deflator stores header information about the compressed data differently to how LZ_UNCOMPRESS expects it, or even if header information is included or it's just raw compressed data.
It sounds a bit like compressing a file with Yoshi compression and then trying to use PKZIP to uncompress it methinks, in which case you're going to be out of luck. You have to ensure the compression algorithms and file formats are compatible.

Similar Messages

  • Is there a way to compress the size of an iMovie to be able to send it in an email?, is there a way to compress the size of an iMovie to be able to send it in an email?, is there a way to compress the size of an iMovie to be able to send it in an email?

    so i made a slideshow for someone and i cant email it to them bec the file is to big... is there a way to compress it?

    Hi
    Yes and No
    Yes
    • Share as QuickTime
    • Convert it to 3gp
    No
    • Will still be larger than most e-mail account's accepts - Mine are limited to 25Mb max
    • Quality will be worse than bad
    I use
    • YouSentIt
    Down load movie
    Get an internet address
    Send address to reciever
    I think it was free for 100-200Mb
    And by using H264 and small size I got an usably movie over.
    Yours Bengt W

  • Is there a way to compress media and project files into something small

    I have a 2TB hard disk where all my FCP files - project files, media files and rendered files are stored.
    I am not sure I will reopen those projects but still to be onthe safer side I do not want to delete them
    but keep the compresed so that in case I need to open them some later time, I can open the project and do the edits.
    So is there a way to compress the files and store that I can reuse in a later stage but still take less space now.

    You can delete all the render files, since they can recreated when needed.
    And you can also delete the optimized or proxy media, if you have any, for the same reason.
    I doubt that you'd get much space back by using compression, since video files are already pretty much compressed.

  • Is there any way to write a Java prg without main()

    I would like to know Is there any way to write a Java program without using main() function.

    > i am unable to execute the program ..............i
    think there must be a main method through with the
    program starts
    The program can be compiled and run. After running it, you'll see "They'll kill you for that" followed by something like "java.lang.NoSuchMethodError: main" and finally someone with a big Volvo will burst into your room and runs you over.

  • I want to buy a new apple tv but it used hdmi cables and my house is only wired for analog.  Is there any way I can use the apple tv on analog cables?

    I want to buy a new apple tv but it used hdmi cables and my house is only wired for analog.  Is there any way I can use the apple tv on analog cables?

    Welcome to the Apple Community.
    It's do-able, but I don't think it's a great idea.
    DVI
    Some users with DVI have managed to get their TV's to work with DVI-HDMI cables. DVI carries no audio, so alternative connections need to be explored to enable audio. DVI doesn't necessarily support HDCP as well as other standards used by HDMI (which may or may not be an issue)
    Analogue
    There are hardware converters that will convert HDMI to various other types of output, however there are some issues with doing so that you should be aware of.
    HDCP
    HDCP compliant converters will not allow you to watch HDCP protected content such as that from the iTunes Store. Non compliant converters exist but we cannot discuss them under the Terms of Use for these communities.
    Resolution and aspect ratio
    I'm not aware of any converters that will scale the output from the Apple TV, any TV or projector which is used will need to be widescreen and support resolutions of 720p (Apple TV 2), 720p/1080p (Apple TV 3)
    DAC
    DAC (Example Only - Not a recommendation or suggestion that this is suitable in your circumstances)

  • The latest version of iTunes does not allow me to open a playlist in a separate window.  I need this feature.  Is there another way?  You used to be able to double click a playlist and have it appear in a new window.

    The latest version of iTunes does not allow me to open a playlist in a separate window.  I need this feature.  Is there another way?  You used to be able to double click a playlist and have it appear in a new window.

    Others have commented on this too.  It seems to be one of the 'improvements' of the newer version you are supposed to embrace with joy as an exciting new development.  You can send feedback to Apple but realize you may be perceived as standing in the path of  progress.
    http://www.apple.com/feedback/itunesapp.html

  • Is there any way I could use my own apple ID to buy in-app purchases even if I used my aun'ts apple ID to install the app?

    I have an Apple Account registered in the U.S & no credit card linked (since im under 18). I always use my Aunt's account because I buy in-app purchases and other stuffs in the app store, I also used her account to download the app I play but she changed her password and gifted me a gift card to redeem in my own apple ID...
    But whenever I wanted to buy something from the game it asks for her password and not mine, I changed the logged in apple account in the iTunes & Apple Store hoping not to re-install the app because I achieved so much in the game..
    Is there any way I could use my own apple ID to buy in-app purchases even if I used my aun'ts apple ID to install the app?

    No, all apps are tied to the account that downloaded them, so only that account will be able to make in-app purchases within them - you would need to delete the game (which would also delete your progress/settings in it) and buy/download it with your account to be able to make in-app purchases with your own account.

  • I don't have a wireless keyboard or mouse for my 2007 iMac, is there any way that can use remote desktop and access it from my 2010mbp.

    i don't have a wireless keyboard or mouse for my 2007 iMac, is there any way that can use remote desktop and access it from my 2010mbp

    Hi champrider,
    You can use an application such as Apple Remote Desktop to control your iMac remotely. See this article -
    OS X Mavericks: Allow access using Apple Remote Desktop
    This help page will provide you with some other useful resources for Apple Remote Desktop -
    Remote Desktop Help
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • My husband bought an iPad 2.  I have a Mac.  ITunes is in my name but I have turned sharing on.  When we updated to OS5 we lost all the free apps that he downloaded in his user name.  Is there no way to update using my iTunes without losing his software.

    My husband bought an iPad 2.  I have a Mac.  ITunes is in my name but I have turned sharing on.  When we updated to OS5 we lost all the free apps that he downloaded in his user name.  Is there no way to update using my iTunes without losing his software.  He is frustrated using the iPad because he never knows whether to use his user name or my user name.

    Apps are only tied to one account... You can set up two iTunes accounts on your computer, however, and let his iPad sync to his account. If he has never backed up his apps to a computer, however, he will have to redownload all the apps. Afterwards, he can backup to iCloud instead of your computer.
    http://support.apple.com/kb/ht1495

  • Is there a way I can use my external hard drive without the files being transferred on to my computer? as like like my iTunes music being on my hard drive without them being copied onto my computers hard drive ?

    is there a way I can use my external hard drive without the files being transferred on to my computer? as like like my iTunes music being on my hard drive without them being copied onto my computers hard drive ? because i dont have that much memory and i wanted my external hard drive to be the source for my music files and not my computer.

    Many users keep their iTunes libraries on external drives. You just have to remember to connect and power up the drive before launching iTunes.
    iTunes for Mac: Moving your iTunes Media folder:
      http://support.apple.com/kb/HT1449 

  • I have Acrobat 9.5 and when I try to create pdf from scanner, it displays an error "Adobe acrobat has stopped working". Is there any way I can use this functionality?

    I have Acrobat 9.5 and when I try to create>pdf from scanner, it displays an error "Adobe acrobat has stopped working". Is there any way I can use this functionality?

    Provide you have Acrobat 9 installed in an OS for which Acrobat 9 is compatible then you can use the functionality.
    As well, you need a scanner connected, powered up, and the software installed. Acrobat 9 "prefers" TWAIN drivers.
    Always visit the scanner vendor's site and download - install the latest greatest software.
    n.b., The Acrobat 9.x product family passed into "End of Support" mid-year 2013.
    As well the Acrobat 9.x product family is not compatible with contemporary OSs.
    Be well...

  • I hv I pad one, is there a way I can use ustream and 4shared

    I hv I pad one, is there a way I can use ustream and 4shared on it

    Thank u 4th reply, but ustrem is saying that video are only viewable with flash on ustream , is there a way I can make it work

  • I only have the trial version of adobe after effects cc but is there any way I can use plugins on it?

    I only have the trial version of adobe after effects cc but is there any way I can use plugins on it? Specifically trapcode particular cc

    The trial version is in no way different from the full version, except that it only works for 30 days.

  • Is there any way we can use our macbook to see Lindon Olympics without pay?

    Is there any way we can use our macbook to see Lindon Olympics without pay?

    If you use the LiveSDK to authenticate the user and specify the wl.signin scope, when the user signs into your app and provides consent to single sign-in when they can go to any Microsoft Account supported app or website they will not have to enter their
    credentials.  The wl.signin scope enables single sign-in behavior.

  • I have an Apple TV 2, is there a way to limit use time?

    I have an Apple TV 2, is there a way to limit use time?

    Since the cable company will always tell you that the "connection looks good", it is a good idea to verify that for yourself, if you have not already done so.
    Just connect your Mac directly to the modem, check the download speed that way, and note the results. If you do not have an application to test the connection speed, you can use something like this:
    http://www.speakeasy.net/speedtest/
    Then, connect the modem to your router normally, and then connect the Mac to one of the LAN <-> Ethernet ports and check that way, and note the results. This should be about the same speed, or a bit less than the direct connection to the modem.
    Then, power off the router and power it back up and try a wireless connection with the Mac relatively close to the router. You should see about 80-90% of the speed that you noted when the Mac was connected directly to the modem and the router using an Ethernet connection.
    Make sure that there are no cordless phones anywhere near the router or Mac when you test the wireless connection.
    Post back on your results.

Maybe you are looking for

  • Moved to a New Mac...it created a brand new time machine file?!?  Why

    It seem since migrating to my new MBP, Time Machine does not recognize my old TM file that has been continuous for over a year. So, not to mention taking an additional 100GB on my Ext HD, there is no continuity or access to older TM files. Any fix fo

  • Update Address and communication  Details of BP

    Hi, Requirement is we need to update address and communication details of BP, please let us know relative BAPI for the same. Below roles has to be updated with given address and communication details, General Role Employee Role Help full information

  • Transfer of requirements from sales order to production.

    hi  how are the requirements transfered from sales order to MRP. if a sales order is created how is the reqirement getting tranfered to MD04. is it through requirement class and requirement type.

  • Blue skies turn gray.

    I wonder if anyone can check this behavior in CS3. I noticed that simply applying the Magic Bullet Looks effect, without ever opening the Looks Builder and making any adjustments, that my blue skies turn gray. Viewing on a calibrated, external NTSC m

  • CalDAV Wiki Calendars Reverting to User Calendars in Lion Client

    My business runs the iCal service with SSL in Snow Leopard Server (10.6.8) for our user calendars.  That's been running fine for quite a while and we support ~50 users.  Some users had created subcalendars that they would then share out with their te