Gunzip
Hi,
in note 314422.1 it is said :
For example:
gunzip rda.tar.gz or
but when I
$ gunzip rda_4.8-070607.tar.gz
I have :
gunzip: rda_4.8-070607.tar.gz: not in gzip format
I can not understand. Many thanks for help.
How did you transfer the file to the server where you are unzipping?
Similar Messages
-
Should I use a temp buffer to gunzip bytes to bytes?
Folks,
I need a method to gunzip (uncompress) a zipped-byte-array into a plain-byte-array ... The below method (based on that used for file-i/o-streams) works, but I can't figure out if using the buf "interveening temporary buffer" is good, bad, or indifferent.
As I understand things... There's really no memory saving in reading/writing-by-the-temporary-buffer because the input gzippedByteArray is allready wholey in memory, and we (by definition) need the whole output plain-byte-array in memory concurrently... so it'd probably be more memory efficient to NOT use temporary-buffer and just zip the WHOLE input straight into the ByteArrayOutputStream with one call to output.write
BUT I'm not really sure of myself here... so please can anyone offer an informed opinion?
Memory efficiency is important (I think) because we're handling XML responses, and "the odd one" might be upto maybe 200 Mb (unzipped), though "the norm" is under a meg, and 99% are under 5 meg... So I guess I need to engineer this instead of just slapping it in and seeing if it pops.
* Returns the g-unzipped (uncompressed) version of the given
* gzippedByteArray.
* @param gzippedByteArray byte[] - the bytes to uncompress
* @return byte[] - the uncompressed bytes
* @throws IOException
public static byte[] getUnzippedBytes(byte[] gzippedByteArray)
throws IOException
ByteArrayInputStream input = null;
GZIPInputStream unzipper = null;
ByteArrayOutputStream output = null;
byte[] bytes = null;
try {
input = new ByteArrayInputStream(gzippedByteArray);
unzipper = new GZIPInputStream(input);
output = new ByteArrayOutputStream();
// unzip bytes onto the output stream
int len;
byte[] buf = new byte[BUFFER_SIZE];
while ( (len=unzipper.read(buf)) > 0 ) {
output.write(buf, 0, len);
// return the contents
bytes = output.toByteArray();
} finally {
IOException x = null;
if(unzipper!=null) try{unzipper.close();}catch(IOException e){x = e;}
if(output!=null) try{output.close();}catch(IOException e){x = e;}
if(x!=null) throw x;
return bytes;
}Thanking you all. Keith.OutputStreams aren't 'exposed by routers... Our bluddy router "encapsulates" the servlet request. It exposes a swag of setters, one of which is setExtractXml(byte[])... the upside is that you don't have to worry about content types, and request headers and all that carp... the downside is the loss of flexibility.
What I meant was that I'll need to customise the session model (which lives in our funky router) to expose the servlet-output-stream to the action class... Then we're laughing.
Or not... My mad tech manager reckons "it's been working that way for years"... he didn't like it when I reminded him of our "odd "unexplained" out of memory" incidents... Nope... His code... His way... Gotta luv the managment, and why do I care anyway... Do I care? Naaah. I just work here. -
I can find gunzip utility in solaris 2.6
Hi,
when i issue find . -name gunzip -print command in my solaris 2.6. I cant find it.
how can i add gunzip back to my platform?
Jeff2 things,
1. Your find command will find what you're looking for if what
you're looking for is under your present directory. That's what
the . is indication. The search your entire system, replace the
. with a / which will tell find to start from the root directory
and work down. The only problem with that is, if you have mounted
drives, find will try to search them (this isn't always
desirable), and if you are using find as a user you will see a
large number of permission denied messages.
2. If you are using /bin/ksh for your shell, another way to find
a command (assuming it's in your path) is to use the 'whence'
command. Here's an example:
ksh> whence gunzip
/usr/bin/gunzip
ksh>
If your system doesn't have gzip or gunzip, go to the gnu web page
www.gnu.org -
Can't find gunzip on Solaris 7 intel
I'm sure this is a total newbie problem, but I can't find gunzip for Solaris 7 intel. I've searched my hard drive, and I can't find it. I've even installed the entire distribution. What am I doing wrong?
Mike Hillwig
[email protected]Mike:
gunzip is not a part of the distribution.
Download gzip from www.sunfreeware.com and install.
George -
ALSB / OSB Java callout to gunzip
We have an input file which is in a gz format, which we need to gunzip before passing onto our business service.
We're writing a simple Java callout component to do this - taking an input stream and returning an output stream.
What variable should I pass into my input stream from the callout in the proxy service message flow?
I've tried $body and $input, but neither of these work.
Thanks in advance
Phil RileyHave tried logging to output, and this is what I get:
$attachments[0]/ctx:attachment/ctx:body - empty
$body
<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<con:binary-content ref="cid:2a96c6b3:12da3c4b844:-7f3c" xmlns:con="http://www.bea.com/wli/sb/context"/>
</soapenv:Body>
$inbound
<con:endpoint name="ProxyService$FredhopperExtract$ProxyServices$Test GZip" xmlns:con="http://www.bea.com/wli/sb/context">
<con:service/>
<con:transport>
<con:uri>file:////apps/bea/dp_tmp</con:uri>
<con:mode>request</con:mode>
<con:qualityOfService>best-effort</con:qualityOfService>
<con:request xsi:type="file:FileRequestMetaData" xmlns:file="http://www.bea.com/wli/sb/transports/file" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="file:FileRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
<file:fileName>/apps/bea/dp_tmp/test.txt.gz</file:fileName>
</tran:headers>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
<file:isFilePath>false</file:isFilePath>
</con:request>
</con:transport>
<con:security>
<con:transportClient>
<con:username><anonymous></con:username>
</con:transportClient>
</con:security>
</con:endpoint>
None of these actually have the contents of the message - the $body is the closest which tells me that it is binary and has a ref. -
How to unzip gz (gunzip ) file
Hi Everybody,
can anybody please tell me how to unzip file with gz (gunzip) extension.I have tried to unarchive by using powerarchive and unzip tools.I even tried gzip tool. Please help me .
S. SinghHi Sukhwinder,
For this first intall gunzip. A free version is available here:
http://www.gzip.org/
After intallation go to cmd promp and transfer to the path where gzip is installed.
Finally type in gzip -d <full path of the file to be decompressed>.
Regards.
Ruchit. -
Gunzip does not work / Solaris
I have downloaded (3 times) 9i and 8i for Solaris 32 bit.
Once I try and gunzip it, gunzip tells me that the file
is not in a gzip format. Can we download smaller pieces ?
O/S is solaris 8. I have downloaded it at random times
during the past week.Thanks to another OTN member, we have identified a glitch in some browsers when downloading gzipped cpio files.
Here is a short explanation and would apply to all such files on OTN:
NOTE: Thanks to William Johnson for figuring this out. I was not sure why I had this problem, but I was not able to "gunzip" the 3 downloaded
files. It was complaining that the files where not in "zipped" format. I then went for broke and tried to "cpio" the files without unzipping them
(keeping the ".gz" ending to the files) and it worked.
If you used Netscape 4.x to download the files it has this horrid, evil habit of uncompressing the files but leaving the extension the same.
% cpio -idmv < Linux9i_Disk1.cpio.gz
% cpio -idmv < Linux9i_Disk2.cpio.gz
% cpio -idmv < Linux9i_Disk3.cpio.gz
A full explanation of how to install Oracle9i on Linux can be found at: http://www.idevelopment.info/data/DBA_tips/DBATIP_53.shtml
Regards,
OTN -
Gunzip of download file does not work
So that we may better diagnose problems, please provide the following information.
- Server name
- Filename
- Date/Time
- Browser + Version
- O/S + Version
- Error Msg
I have downloaded the "cpio.gz" for Oracle 9i on Linux.
The file is "Linux9i_Disk1.cpio.gz", the file size on my end is 449027072 bytes - which appears to be right. When I used
"gunzip" to decompress this file or the other two,
I kept getting "gunzip: Linux9i_Disk3.cpio.gz: not in gzip format ".
The server I used is HP-UX 11.0.
Thanks for your help.
[email protected]I downloaded the Linux9i files and got the same message for all files.
The file sizes don't correspond to the sizes stated, but downloaded the smallest one again and got exactly the same file size.
Gary -
Fail to gunzip the OracleAS 904 for HPUX version
Hi,
I have downloaded OracleAS 904 for HPUX version, gunzip is okay for Disk1 and Disk4, I got mesg like "unexpected end of file" for Disk3.gz and Disk4.gz.
How to get the gunzip working for these two files? Are there anything wrong with them?
Thanks.
EileenPlease check the sum before using gunzip.
If sum values are not matching with the ones
shown on OTN download page for that file, it
means the download did not complete and file
is most likely corrupted.
If sums are fine, gunzip should not be a
problem. -
How to uncompress *.tar.gz archive with p7zip (or gunzip)?
How do I uncompress a.tar.gz archive with p7zip?
I tried the following (as root from directory /tmp):
p7zip -d "/media/Backup Full/logfiles2014.03.tar.gz"
without success. p7zip tells me: "unknown suffix"
Even (as root from /tmp directory)
gunzip -d "/media/Backup Full/logfiles2014.03.tar.gz"
does not work. I was told "No such file or directory"
But I am sure the path to DVD is correct. I can see it in File Browser
So how else can I uncompress a *.tar.gz (to /tmp folder)?
I guess the extracted output should automatically be put in the directory where p7zip/gunzip is started.
If an additional output directory parameter is necessary then the output should go to /tmpThe Solaris 11 tar command actually understands gz format:
tar xf /media/Backup Full/logfiles2014.03.tar.gz
Much simpler. See the man page for tar.
-- Alan -
Cannot gunzip .gz Oracle 9i files for Linux
I downloaded the 3 files for Oracle 9i for Linux. I followed the instructions to gunzip the files but they will not unzip as I get the following error:
gunzip: Linux9i_Disk1.cpio.gz: unexpected end of file
I've tried all there files and get the same error. I've also tried other decompression software and none of them work. Are the gz files bad? It took me 3 days to download them, but they came down ok and shouldn't be corrupted. Anybody have any ideas? Thanks in advance.Kyle, try testing to see what type of files they really are. eg. file <file name>. I had a similar problem, it turns out that they are cpio format not gzip. You should be able to extract the cpio archive using "cpio -idmvI /mnt/cdrom/Linux9i_Disk1.cpio.gz"
Good Luck -
So that we may better diagnose DOWNLOAD problems, please provide the following information.
- Server name
- Filename
Linux9i_Disk1.cpio.gz & Linux9i_Disk2.cpio.gz
- Date/Time
a week ago
- Browser + Version
Netscape 4.76
- O/S + Version
Mandrake Linux 8.0
- Error Msg
Varies
Hi.
I'm having trouble gunzipping or cpio-ing the .gz files I downloaded for Oracle9i Enterprise/Standard Edition for Linux (Intel). I was able to gunzip the Disk3.gz file, but unsuccessful with the first two.
It looks as though the files do come compressed as they are approximately 200mb in size rather then quoted +400mb.
My understanding is that by cpio-ing I should get all the files uncompressed under the correct directly. It does not do this.
When I try to to gunzip the file, I get "Unexpected end of file" error.
Please help!
Thanks,
TakeshiMike:
gunzip is not a part of the distribution.
Download gzip from www.sunfreeware.com and install.
George -
hi,
i have downloaded from OTN these CDs:
HP_IA64_server_9.2.0.2.0_Disk1.cpio.gz
HP_IA64_server_9.2.0.2.0_Disk2.cpio.gz
HP_IA64_server_9.2.0.2.0_Disk3.cpio.gz
in order to install Oracle9i on an HP ITANIUM server, but when i tried to uncompress (with gunzip) the second CD, i receive these error: "invalid compressed data--crc error" .
so, please can you tell me what is the problem exactly. because, i have downloaded it another time but the problem didn't change.
thanks.> We are trying to check whether any interim patch has been installed in one of our SAP (ECC) server with Oracle 9.2.0.6.0 on HP-UX 11.23 platform.
You're aware that Oracle 9.2 is out of support and that you are using an ancient software version?
> Cannot find liboraInstaller.sl
You have that library in $ORACLE_HOME/libs?
Markus -
Exporting LDIF Data in gunzip format
Hi All,
When you export suffix data, if the filename of the export file ends with .gz, ODSEE automatically compresses the file.
[http://docs.oracle.com/cd/E35622_01/html/821-1216/whatsnew7.html#scrolltoc].
I tried exporting the suffix data in .gz format using below command:
./dsconf export -h host -p port "dc=test,dc=com" /home/oracle/test.gz
Although it created the file but I was not able to see the contents and gunzip command throwed me the error "not in gzip format".
So, does this command work, I mean export the data in .gz format or I am missing something here?
I was able to export the data in ldif using the same command.
Regards,
SunnyMy bad, the file name has to be test.ldif.gz.
-
Gunzip Patches on Solaris 2.6
Using gunzip on a patch gives an error stating that my file is corrupt and to use zcat to recover some data. I run zcat and gunzip -c but nothing happends, no decompression and therefore no extraction or patchadd. Any insights are much appreciated. Thanks
Hi,
libCrun.so.1 is located in /usr/lib on solaris. Does your solaris install have a copy of it? ld should look in /usr/lib by default to load dynamic libraries and unless they are not there, it should find it.
Bill
Basudev Mohanty wrote:
The following error message has been found during installation of Weblogic 6.1 with SP2
on SUN Solaris 2.6 (SPARC)
Pl. provide solution.
Error: failed /home2/weblogic/tmp/install.dir.7090/Solaris/resource/jre/jre/lib/sparc/client/libjvm.so, because ld.so.1: /home2/weblogic/tmp/install.dir.7090/Solaris/resource/jre/jre/bin/../bin/sparc/native_threads/java: fatal: libCrun.so.1: open failed: No such file or directory
Maybe you are looking for
-
What are Apple doing to rectify the problem that the Wifi icon is greyed out and you can no longer get onto Wifi!! This has happened on both iPhones I my household!! It must be a problem with Apple as so many people seem to having the same problem.
-
AW7 sound in button won't play
I have an AW 7 piece where I have imported graphics and SOUNDS into a button. The packaged piece shows the button graphic, but when the cursor goes over the button, I get an error prompt stating: "... while trying to play the sound. The internal soun
-
HT203180 Cannot transfer movie to iphone
I keep getting a box that says that this movie cannot be played on your iphone. I have the iphone 4. Anyway to fix this
-
How to remove windows from my imac?
He there, How do i remove windows completely from my imac? I really want to wipe it out and let my imac run independently. Thanks
-
Is there a way to level a video clip.
I'm using Adobe Premiere Elements 12. Is there a way to level a video clip? The video camera was slightly tilted so the horizon line is not straight. I'm not seeing an editing tool for this. Thanks.