Download and decompress blob

Hi! I have a Servlet that retrieves a blob form a DB (GZIP file) and download it, here's the code:
isZip = new GZIPInputStream (blob.getBinaryStream());
out=response.getOutputStream();
//4.-Preparamos el contentType del Servlet, forzado a download.
response.reset();
response.setContentType("application/force-download");
int num=is.read();
response.setHeader("Content-Disposition","attachment; filename=\"" + "melon.gz" + "\"");
while(num!=-1){
out.print(num); //out is a ServletOutputStream
num=is.read();
response.flushBuffer();
//Close and flush all the streams.
But it doesn't work well, the Zip doesn't recognize the file like a gzip file, can u help me?

Ops, I was reading for an inputStream is and form a isZip.

Similar Messages

  • Download and decompression

    I am a new to J2ME. I am trying develop application to download a zip file from our server and decompress it in a specific location on Pocket PC, PDA and mobiles. Could please let me know If I can do this in J2ME. If so,
    Could please give me some idea or refer me to some web sites where I can found some relevant information
    Thanking you in advance
    With best regards
    Aruna
    Edited by: arunag on Dec 20, 2007 1:38 AM

    How about some google?
    Ans try this one: http://www.tinyline.com/utils/index.html

  • How do I install firefox on my Asus EeePC having downloaded and decompressed it?

    My notebook came with firefox installed on the Xandros operating system, but I have been prompted to download the latest version. I have done so and now need to load into the system. I have no instructions for that I realize I need to get the command console up but what do I type into this? The Xandros system has an add new software button but only for the existing linux - it does not recognise ither versions

    How old is that EeePC?
    If that is one of the original versions, from 2007 - 2009, the Xandros operating system doesn't support anything newer than Firefox 2.0 !
    I have a EeePC 900, and in 2009 I installed EasyPeasy OS [http://en.wikipedia.org/wiki/EasyPeasy] so that I could run Firefox 3.6. Unfortunately, EasyPeasy was discontinued in 2012 altogether, but work on it had quit in like 2010 when Ubuntu started adding files needed for Netbooks like the EeePC.
    Overall, ASUS used a weird OS to begin with on the first EeePC 700 model - Xandros, which was already a couple of years behind the Linux-curve as far as security updates and file version levels. And then ASUS didn't provide funding to the team that created Xandros to make it more up-to-date.
    Then there is the issue of Microsoft seeing the Netbook market slip thru their fingers, and MS putting pressure on ASUS to use a "Lite" version of WinXP, which did become an option after the 900 versions. But that's another story ...
    Bottom line is that you need a different, newer Operating System for that device to be able to use a newer version of Firefox. Best thing to do is to head over to the Ubuntu support fora and ask about an appropriate Linux distro for your EeePC.
    http://ubuntuforums.org/
    I don't use my EeePC for the purpose I originally got it for ''(the company I worked in for 2008 went bust in 2010 - I was an outside service rep and did on-site job reporting with the EeePC which fit in my toolbag)'', and I never updated it beyond EasyPeasy and Firefox 3.6. I use it now on my local network in my home and don't go on the internet with it. Basically a terminal on the network for viewing and editing locally saved files when I am watching TV, during commercials.

  • Re: Problem providing download link for BLOB data in apex report

    Hi Don,
    Your solution below worked but in the download option i only see save but not open for PDf file in the blob. Please let me know if you have any suggestion to achieve it
    Thanks
    Jo
    Problem providing download link for BLOB data in apex report 
    591953 Nov 19, 2008 1:55 PM (in response to 660436)
    Currently Being Moderated
    Good morning,
    Here is how I have solved this problem.
    1. The select statement in the sql for the report should not include the BLOB column. I decided to select only 2 columns, the column that has the key and the column with the filename.
    2. On the first column ( the primary key ) I put in the format statement that was simply DOWNLOAD:TABLENAME:BLOB_COLUMN:PRIMARY_KEY
    This works. I believe that the Oracle error I was getting was because I was trying to apply this format statement to the actual BLOB column.
    So, it appears that you can use any of the columns in the report to hold the DOWNLOAD format statement since in the format statement, you are defining the BLOB table, BLOB column and the primary key into that column.
    Hope this helps,
    Don.

    Branched out from a years old thread.
    user3003326 Don't post to old threads, please.

  • Problem providing download link for BLOB data in apex report

    Hi,
    I am trying to create a report on a table with BLOB data so that the report displays a "download" link for the BLOB data. I am trying to give users the ability to download files from a website.
    I have been following the instructions in OBE "Defining and Viewing BLOB Data in Oracle Application Express 3.1".
    In the report, for the BLOB column, I have specified values for the following fields in Report Attributes->Column Formatting->Number/Date Format->BLOB Download Format Mask:
    BLOB Table
    BLOB Column
    Primary Key Column 1
    MIME Type Column
    Filename Column
    BLOB Last Updated Column
    However, when I run the report, I get the following error, even thought there is data loaded into the table:
    report error:
    ORA-01403: no data found
    When I remove the BLOB Download Format Mask information for the BLOB column, then the data displays in the report, but without the "download" link for the BLOB data (which is expected):
    E.g.
    Title Author Created BLOB_CONTENT
    Siebel & RAC Best Practices     Erik.Peterson     17-SEP-08     [datatype]
    Siebel Grid Case Studies     Mark.MacDonald     17-SEP-08     [datatype]
    Siebel CRM Applications protected by Oracle Clusterware     Kelly.Tan     17-SEP-08 [datatype]
    Oracle Grid: The Optimal Platform for Siebel Solutions Mark.MacDonald 17-SEP-08     [datatype]
    Any ideas why I'm seeing the ORA_01403 when I specify the BLOB Download Format Mask?
    Edited by: user716599 on Sep 18, 2008 12:31 AM

    Good morning,
    Here is how I have solved this problem.
    1. The select statement in the sql for the report should not include the BLOB column. I decided to select only 2 columns, the column that has the key and the column with the filename.
    2. On the first column ( the primary key ) I put in the format statement that was simply DOWNLOAD:TABLENAME:BLOB_COLUMN:PRIMARY_KEY
    This works. I believe that the Oracle error I was getting was because I was trying to apply this format statement to the actual BLOB column.
    So, it appears that you can use any of the columns in the report to hold the DOWNLOAD format statement since in the format statement, you are defining the BLOB table, BLOB column and the primary key into that column.
    Hope this helps,
    Don.

  • JDBC Receiver Adapter and Oracle BLOB

    Hi,
    I would like to put some raw data into an ORACLE BLOB using XI. My idea was to put the data in an xml element, but the JDBC sender adapter doesn't seem to be able to cope with writing. Has anybody gathered experiences regarding this topic?
    Kind regards,
    Heiko

    Hi,
    The error saying it is unable to connect to the Database, so it may be the drivers problem. once check the drivers and its syntaxes.
    Syntax :
    http://www.devx.com/tips/tip/28818
    For Download and configure the drivers :
    http://www.aquafold.com/docs-jdbcdrivers-oracle10g.html
    http://www.oxygenxml.com/database_drivers.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f04ce027-934d-2a10-5a8f-fa0b1ed4d88f

  • Download and branch

    I have a column link on a report region. The result of clicking the column link should be to execute a procedure that downloads a file then branch to another page in the application.
    Despite trying all kinds of permutations of linking, submitting, processing and branching on the report page and the target page I can't achieve the desired behaviour: it will download but not branch, branch but not download, or branch and dump the file contents into the browser window.
    I'm sure this is perfectly simple but I've reached the can't see the wood for the trees stage...

    I'm still having problems with this. Further searching revealed that htp.init() solves dumping the file contents into the browser window, and I thought that owa_util.redirect_url(...) would help in either acheiving a download and branch or a branch and download...but no. Whether I try to do this through AppEx processes and branches or in server PL/SQL, it either does the download and stays on the original page, or it changes the page and doesn't download the file.
    Raj's comments in this thread:
    Re: Downloading BLOB from a table.
    are kind of hopeful, as they cover our requirement that you must be authenticated/authorised to access the report page (and hence the downloads) but it doesn't cover the scenario of branching back to the report page to show the updated information that the download has occurred.
    Is this possible to do this using one browser window? (I've done it using JavaScript to open a new window for the download and redirecting the original.)
    I think the steps should be:
    1. Update database information on downloads
    2. Redisplay the report page showing updated information
    3. Branch to URL calling download procedure
    but cannot seem to find the appropriate process/branch firing points.
    I'd be surprised if no one else has done this, but if no one has anything to contribute on this particular problem, I'd really appreciate explanations (or pointers to explanations) for the workings of htp.init() and wwv_flow.g_unrecoverable_error that are mentioned a lot in forum posts relating to this kind of activity, but are not covered (that I've been able to find) in the Oracle documentation.
    [This is HTML DB 1.6.0.00.87 on Oracle9i Enterprise Edition 9.2.0.5.0 through Oracle Application Server 9.0.4.1.0.]

  • Why does my app store use a different account for downloading and another for updating apps?

    My app store used my own account for downloading and my sister's for updating, and it keeps telling me to reset my account. I already did that the other few times it told me to do that!

    Have you restored your device from your sister's backup?

  • I have ios 5.1.1. When I sync to iTunes, my purchased apps no longer work. They blink but do not open. The only way I have been able to solve this, is as follows: I delete one of the apps and then re-download and install it. Then, all my apps work.

    My new iPod touch 64 Gig has a problem after syncing with iTunes. My purchased apps no longer work. I touch them and they seem to try to open but they do not.
    The only way I have found to fix this is as follows:
    I delete one of the purchased apps. Then I go to the App Store and re-download and install the same app. After that, all my apps work again.
    Please help.

    Download/install an app is a know possible solution.
    3. Install another app from the App Store
    If all user-installed apps are not launching, it could be an Apple ID authorization issue. Download and install an app that isn't already installed on your device to reset this information.
    Note: If you have installed apps using multiple Apple ID accounts, you may need to perform this step for each account.
    Above from Apple's :
    iOS: Troubleshooting applications purchased from the App Store

  • I have low C disk space. Want to install Ai Trial. Not enough Space. But have a huge space of G: drive. How I can direct install to download and install on other than C: drive?

    I am short with C: Drive space. Cannont Install Ai Trial. How I can download and Install on other than C: drive? I am trying to download it through Creative Cloud as a subscriber.

    Thanks for help. It worked. Now up and running Ai.
    Sent by:
    Khalid Hameed
    London - UK

  • Window 8.1 Chinese character cannot display properly in a game even though I have downloaded and install all chinese language packs

    Hi,
    The operation system for my computer is Window 8.1. I am currently trying to install a chinese game. Even though I have downloaded and install all the chinese language pack, I have even set the regional language locale to chinese (similified / traditional),
    the chinese characters will not display properly in the game. Some people told me i need to set the locale to Chinese PRC, but I am not sure where to download this PRC language pack for window 8.1 (as I only have chinese simplified and chinese traditional).
    I would greatly appreciate if someone can give me a hand in solving this problem. Thank you for your help in advance. 

    Hi,
    The operation system for my computer is Window 8.1. I am currently trying to install a chinese game. Even though I have downloaded and install all the chinese language pack, I have even set the regional language locale to chinese (similified / traditional),
    the chinese characters will not display properly in the game. Some people told me i need to set the locale to Chinese PRC, but I am not sure where to download this PRC language pack for window 8.1 (as I only have chinese simplified and chinese traditional).
    I would greatly appreciate if someone can give me a hand in solving this problem. Thank you for your help in advance. 
    Hi,
    Please open Region, under administrative -> Language for non-Unicode programs: choose Chinese.
    Kate Li
    TechNet Community Support

  • I am trying to re load Lightroom 5.7 frommy outside hard drive to my new hard drive . I am able to reach a certain point in the download and I am then asked for the access code which I do not have. I had upgraded on line from Lightroom3.

    Hello,
    I just had the hard drive on my computer replaced, and the Lightroom5.7 and Photoshop cannot be sent over from the outside hard drive without an access code!! Now what do I do? Will Adobe have a record of my Lightroom3 download and my 5.7 upgrade?

    If you took the time to register your software on the Adobe web site, then you can log on and retrieve your serial numbers.
    Find your serial number quickly
    You ought to be able to retrieve the serial numbers from your first hard drive ... that requires knowing what your operating system is and if the first hard drive actually is readable.
    And if none of that works ... well then I think you're way out of luck.
    Might I suggest you adopt a new method of keeping track of your serial numbers, not just for Lightroom but all of your software? I suggest you create a computer text file named serialnumbers.txt, containing all of your serial numbers, stored on your computer and in a cloud backup service (like DropBox which is free) so that you will never lose it.

  • I'm trying to download itunes 10 but I get to a point in the download and it tells me, "The feature you are trying to use is on a network resource that is unavailable" but I haven't had itunes on my computer for a year now so how can I get around this?

    I'm trying to download itunes 10 but I get to a point in the download and it tells me, "The feature you are trying to use is on a network resource that is unavailable" but I haven't had itunes on my computer for a year now so how can I get around this?

    iTunes.msi
    Perfect, thanks.
    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • When I download Itunes my computer tells me there was and error in the download and I have to downlooad again.  I have tried three times.  My computer in brand new. So what could the problem be

    When I download itunes my computer tells me there was an error in the download and I need to re-download.  It tried three times to re-download and got the same error.  Any help for this?  My computer is brand new.

    Go START/ALL PROGRAMS/APPLE SOFTWARE UPDATE"
    If it offers you a newer version of Apple Software Update, do it but "Deselect" any other software offered at the same time.
    Once done, try another iTunes download

  • Something was hidden in a download and now these double green underlined hyperlinks show up everywhere, and pop ups too whenever I click on ANYTHING. I can't figure out how to find it and get rid of it.

    Something was hidden in a download and now these double green underlined hyperlinks show up everywhere, and pop ups too whenever I click on ANYTHING. I can't figure out how to find it and get rid of it.

    You installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised the value of Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

Maybe you are looking for

  • Adobe Media Encoder CS4 will not convert .mov video

    Hello, I have Adobe Media Encoder CS4 installed on my computer and I'm trying to convert a .mov video into a format that can be edited on windows movie maker and when I convert the video it converts the audio just fine, but there is only a black scre

  • How to get currently logged in user on 'Bill of Material' Form in Add-Mode

    Dear All,                 I am using a UDF on 'Bill of Material' Form in SAP. This UDF is named as Current_User. I want in this UDF the user name that is currently logged in to SAP. I am able to get user name at form load event. But when 'Bill of Mat

  • Report Painter question (FGI1) How to limit output up to a specified period

    Hello I have a report painter question. I am trying to create a BS report using tcode FGI1 (FALGFLEXT), that lists out the BS values by month (Jan - Dec). But the problem I am coming across is, if I specify selection parameter 01 2008, the report als

  • XML data sets in FC

    wouldn't it be great if you could import xml data into design time data sets or the ability to use a single data list for multiple components..

  • Constant Contact + Address Book Exporter application

    Since installing Snow Leopard and Quickbooks 2010 (and turning back on Sync in QB) my Address Book Exporter application will not export names and email addresses without all having errors. Can no longer import them. Any suggestions and thank you.