Questions tagged [inflate]

inflate is the decompression counterpart to the lossless compression algorithm and format deflate. The deflate format was created by Phil Katz of PKWare for the PKZip (.zip) archive format. Public domain software provides deflate and inflate functionality in the gzip utility and the zlib library. (Note that this tag has nothing to do with Android view inflate.)

348 questions
0
votes
1 answer

Inflate a tablerow with id's on every item

I have a major problem with an application im trying to developer atm. I have this view as you can see in the link below. How can I inflate this so I dont have to spam it 10 times in my xml file? I also want to have separate id's on the items in…
JussT
  • 171
  • 1
  • 4
  • 15
0
votes
0 answers

How to set inflaterInputStream.Position?

I'm trying to set inflater.Position by calling the code below: Stream data = Compress(buffer); // data: length=12, position=12 //inflater: length=0, position=12 InflaterInputStream inflater = new InflaterInputStream(data); …
user1486691
  • 207
  • 5
  • 17
0
votes
1 answer

Checking Validity of DEFLATED data

I have some data that has been passed through the DEFLATE algorithm. If I run the command perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)' < deflated_data.gz The correct output is printed. However, if I use the following code on the same…
cytinus
  • 4,664
  • 8
  • 30
  • 44
0
votes
0 answers

C++ Winsock HTTP - gzip/deflate failing

I'm trying to programatically retrieve a twitter RSS feed using winsock and look as much like a real browser as possible. I do NOT want to use WinINET. Getting the data seems to be working but the gzip_decompress is not. I'm using the…
0
votes
1 answer

Android: Inflate Exception after trying to add another language to my application

My Android application was working in English and I have to provide the users with an Arabic version too. I did the following, Added a layout-ar folder and put my layout files there. Added a drawable-ar folder and put my images there. Added a…
Nouran H
  • 1,882
  • 4
  • 18
  • 24
0
votes
1 answer

Error when referencing Context class to XML in android

i am trying to referencing a Main.class that extend SurfaceView to XML layout. the XML is like this:
abuybuy
  • 761
  • 2
  • 13
  • 32
0
votes
1 answer

Android, Is it possible to set list to be scroll-able horizontally?

In my project i have a list. this list includes thumbnail images which should be scrollable horizontally. If i add a list inside HorizontalScrollView and inflate my list what will be output? I want to arrange all images horizontally. How can I do…
Hesam
  • 46,136
  • 63
  • 203
  • 340
-1
votes
1 answer

Android: OnCreate xml Inflate Error?

These are apart of my Activity code @Override protected void onCreate(Bundle savedInstanceState) { Logger.i(TAG, "onCreate"); super.onCreate(savedInstanceState); MobclickAgent.onError(this); …
stream
  • 369
  • 1
  • 6
  • 18
-1
votes
1 answer

Z_DATA_ERROR when trying to inflate png IDAT chunk

I'm having trouble inflating the png IDAT chunk back to RGB data. void PNG::IDAT() { int index = 0; char CMF = m_data[index]; index++; //big endian char CM = CMF & 0b00001111; char CINFO = CMF & 0b11110000; //For CM =…
Sam iets
  • 1
  • 1
-1
votes
1 answer

zlib is giving data error

I am trying to inflate an object stream in a pdf. While inflating one of the object stream which is compressed with flate decode I am getting data error. Object stream 1339 0…
Gangadhar
  • 25
  • 6
-1
votes
2 answers

Deflate and Inflate Java String in Memory Zip Exception Error

I am writing code to deflate and inflate a string in base 64 encode but I am getting the following error: Exception in thread "main" java.util.zip.ZipException: incorrect header check at…
Dalton Heiland
  • 107
  • 2
  • 7
-1
votes
2 answers

Why is the zlib inflate function is not working in correct order in node.js?

I am new to Stackoverflow. I am now working on a node.js program. The input is a data stream containing few blocks of data (also zipped by DEFLATE algorithm) concatenated together. My goal is use INFLATE to restore the data blocks and put them into…
Frederick Li
  • 488
  • 5
  • 5
-1
votes
1 answer

How to decompress using Inflater in Java?

I am very new to Java. I have some codes to compress like below: public void compress(OutputStream out) throws IOException { Deflater deflater = new Deflater(1); DeflaterOutputStream zOut = new DeflaterOutputStream(out, deflater, 1024); …
Joshua Son
  • 1,721
  • 6
  • 27
  • 46
-1
votes
1 answer

Zlib inflate error

I am trying to save compressed strings to a file and load them later for use in the game. I kept getting "in 'finish': buffer error" errors when loading the data back up for use. I came up with this: require "zlib" def deflate(string) …
user1796160
  • 437
  • 2
  • 5
  • 12
-2
votes
1 answer

how pass value of textview in custom listview when click on item to another activity?

i have a custom listview that fill from database and i want when click on any item value of textview pass to another activity, how should i do? please help me! this is all code , thanks u source code: Edit: public class ListActivity…
Mehdi Rahimi
  • 133
  • 1
  • 13
1 2 3
23
24