Deflator and Inflator problem

I use Deflator and Inflator to compress and decompress String for minimizing the size of the data to be sent in a network system.
I wrote a class (DataCompressor.java) to do it.
When i try to use it to compress and decompress within a single program (TestDataCompressor.java), it's all right.
But when i try to compress a String in (DCClient.java), and sent the compressed String to (DCServer.java), there are exception in decompressing the compressed String
My paltform is Windows2000 and JDK1.31
Anyone know what is the problem i got?
DataCompressor.java
import java.util.zip.Deflater;
import java.util.zip.Inflater;
import java.util.zip.DataFormatException;
import java.io.UnsupportedEncodingException;
public class DataCompressor
private Deflater DF = new Deflater(Deflater.HUFFMAN_ONLY,true);
private Inflater IF = new Inflater(true);
private int BUFFER_SIZE = 2048;
private byte[] compressbytes;
private byte[] decompressbytes;
private String encoding = "UTF-16LE";
public DataCompressor()
compressbytes = new byte[BUFFER_SIZE];
decompressbytes = new byte[BUFFER_SIZE];
public DataCompressor(int bsize)
BUFFER_SIZE = bsize;
compressbytes = new byte[BUFFER_SIZE];
decompressbytes = new byte[BUFFER_SIZE];
synchronized public String compress(String inputString)
int len;
DF.reset();
try
DF.setInput(inputString.getBytes(encoding));
DF.finish();
len = DF.deflate(compressbytes);
return new String(compressbytes,0,len,encoding);
catch(UnsupportedEncodingException UEE)
UEE.printStackTrace();
return "";
synchronized public String decompress(String inputString)
int len;
IF.reset();
try
IF.setInput(inputString.getBytes(encoding));
len = IF.inflate(decompressbytes);
return new String(decompressbytes,0,len,encoding);
catch(UnsupportedEncodingException UEE)
UEE.printStackTrace();
return "";
catch(DataFormatException DFE)
DFE.printStackTrace();
return "";
synchronized void clear()
DF.end();
IF.end();
DF = null;
IF = null;
compressbytes = null;
decompressbytes = null;
TestDataCompressor.java
import java.io.*;
public class TestDataCompressor
public static void main(String[] args)
String Data1 = "this is a test for data compression";
String EnData1 = "";
String DeData1 = "";
DataCompressor DC = new DataCompressor();
EnData1 = DC.compress(Data1);
System.out.println("Out 1 :\n"+EnData1);
DeData1 = DC.decompress(EnData1);
System.out.println("Decom 1 :\n"+DeData1);
DC.clear();
DC = null;
DCClient.java
import java.io.*;
import java.net.*;
public class DCClient
public static void main(String[] args) throws IOException
Socket S = new Socket("127.0.0.1",9090);
PrintWriter PW = new PrintWriter(S.getOutputStream(),true);
String Data = "this is a test for data compression";
String EnData = "";
DataCompressor DC = new DataCompressor();
EnData = DC.compress(Data);
PW.println(EnData);
System.out.println(EnData);
System.out.println(EnData.length()+" chars sent");
try
byte[] D = EnData.getBytes("UTF-16LE");
for(int i=0;i<D.length;i++)
System.out.println(D+" : "+(char)D);
catch(UnsupportedEncodingException UEE)
UEE.printStackTrace();
S.close();
S = null;
System.exit(0);
DCServer.java
import java.io.*;
import java.net.*;
public class DCServer
public static void main(String[] args) throws IOException
ServerSocket SS = new ServerSocket(9090);
Socket S;
BufferedReader BR;
String message = "";
DataCompressor DC = new DataCompressor();
while(true)
S = SS.accept();
BR = new BufferedReader(new InputStreamReader(S.getInputStream()));
while((message = BR.readLine())!=null)
System.out.println(message);
System.out.println(message.length() +" chars received.");
try
byte[] D = message.getBytes("UTF-16LE");
for(int i=0;i<D.length;i++)
System.out.println(D+" : "+(char)D);
catch(UnsupportedEncodingException UEE)
UEE.printStackTrace();
System.out.println("Decompressed : "+DC.decompress(message));
}

This is a guess from a puurely cursory glance at your code. I thought I saw you using readline() to get compressed data off the wire. That is probably the wrong thing to do, as the data is not character data.

Similar Messages

  • Using Deflater and Inflater with JDK 1.1

    Does anyone have an example using the classes Deflater and Inflater to decompress and compress data?
    I get an "EOFException" when using the following code:
    // compression
    public Packet zipData(Packet packet)
    // Create a new Deflater
    Deflater def = new Deflater();
    byte[] buf = new byte[packet.getData().length];
    int offset = 0;
    def.setInput(packet.getData(), offset, packet.getData().length);
    def.finish();
    offset = def.deflate(buf);
    byte[] real_buf = new byte[offset];
    System.arraycopy(buf, 0, real_buf, 0, offset);
    packet.setData(real_buf);
    return packet;
    Any help will be greatly appreciated.
    Thanks.

    take a look at this techtip, may be it will be of some help to you
    http://developer.java.sun.com/developer/TechTips/1998/tt0421.html#tip2

  • Deflater and Inflater again!

    Hi All
    This is in continuation of the thread
    http://forum.java.sun.com/thread.jsp?thread=389668&forum=4&message=1683180
    I am working on a similar problem. We need compress and decompress some messages which are Java 'String's. I have explored this and many other solutions to implement this in Java using the zip package but nothing has worked so far.
    My specific question here is related to the code snippet given below. It doesnt work with String str but works fine with String str2. Can someone please explain to me why?
    Here's the exception trace that I get when I use String str
    /*****************************EXCEPTION TRACE BEGINS*****************************************/
    oversubscribed dynamic bit lengths tree
    java.util.zip.DataFormatException: oversubscribed dynamic bit lengths tree
    at java.util.zip.Inflater.inflateBytes(Native Method)
    at java.util.zip.Inflater.inflate(Unknown Source)
    at EncodeDecodeExample.<init>(EncodeDecodeExample.java:52)
    at EncodeDecodeExample.main(EncodeDecodeExample.java:75)
    /*****************************EXCEPTION TRACE ENDS*****************************************/
    Please note that, the exception message changes to "java.util.zip.DataFormatException: incorrect data check" if String str3 is used instead of String str in the line marked "/***********change string here***********/".
    Here's the code snippet
    /*****************************CODE BEGINS*****************************************************/
    import java.util.zip.*;
    import java.io.*;
    import java.lang.reflect.Array;
    public class EncodeDecodeExample
         public EncodeDecodeExample()
              try{
                   // encoding the string into byte
                   String str = "Please encode this string neelesh abcdefghp ijklmnop";
                   String str2 = "Please encode this string neelesh";
    String str3 = "Please encode this string neelesh Please encode this string neelesh Please encode this string neelesh abcdefghp ijklmnop";
                   byte[] bt = str.getBytes(); /***********change string here***********/
                   // compressing the bytes
              int initialSize = 10;
                   byte[] output;
                   Deflater deflater;
                   int datalen;
                   do{
                        output = new byte[initialSize];
                        deflater = new Deflater();
                        deflater.setInput(bt);
                   deflater.finish();
                        datalen = deflater.deflate(output);
                        if(datalen == initialSize){
                             initialSize *= 2;
                        else{
                             break;
                   }while(true);
                   String tempString = new String(output, 0 , datalen);
                   byte[] tempBt = tempString.getBytes();
                   // decompressing the bytes
                   Inflater inflater = new Inflater();
                   inflater.setInput(tempBt, 0, Array.getLength(tempBt));
                   byte[] result = new byte[4000];
                   int reslen = 0;
                   try{
                        reslen = inflater.inflate(result, 0, 80);
                   catch(DataFormatException e)
                        System.out.println(e.getMessage() );
                        e.printStackTrace();
                   inflater.end();
                   // decoding bytes to a String
                   String outputString = new String(result, 0, reslen);
                   System.out.println(outputString);
              }catch(Exception e){
                   System.out.println(e.getMessage() );
                   e.printStackTrace();
         public static void main(String args[])
              new EncodeDecodeExample();
    /*****************************CODE ENDS*****************************************************/

    HI All
    Extremely sorry for the goof up, please refer to this piece of code intead of the one in the earlier posting, thanks
    Neelesh
    /*****************************CODE BEGINS*****************************************************/
    import java.util.zip.*;
    import java.io.*;
    import java.lang.reflect.Array;
    public class EncodeDecodeExample
         public EncodeDecodeExample()
              try{
                   // encoding the string into byte
                   String str = "Please encode this string neelesh abcdefghp ijklmnop";
                   String str2 = "Please encode this string neelesh";
                   String str3 = "Please encode this string neelesh Please encode this string neelesh Please encode this string neelesh abcdefghp ijklmnop";
                   byte[] bt = str.getBytes(); /***********change string here***********/
                   // compressing the bytes
                   int initialSize = 10;
                   byte[] output;
                   Deflater deflater;
                   int datalen;
                   do{
                        output = new byte[initialSize];
                        deflater = new Deflater();
                        deflater.setInput(bt);
                        deflater.finish();
                        datalen = deflater.deflate(output);
                        if(datalen == initialSize){
                             initialSize *= 2;
                        else{
                             break;
                   }while(true);
                   String tempString = new String(output, 0 , datalen);
                   byte[] tempBt = tempString.getBytes();
                   // decompressing the bytes
                   Inflater inflater = new Inflater();
                   inflater.setInput(tempBt, 0, Array.getLength(tempBt));
                   byte[] result = new byte[4000];
                   int reslen = 0;
                   try{
                        reslen = inflater.inflate(result);
                   catch(DataFormatException e)
                        System.out.println(e.getMessage() );
                        e.printStackTrace();
                   inflater.end();
                   // decoding bytes to a String
                   String outputString = new String(result, 0, reslen);
                   System.out.println(outputString);
              }catch(Exception e){
                   System.out.println(e.getMessage() );
                   e.printStackTrace();
         public static void main(String args[])
              new EncodeDecodeExample();
    /*****************************CODE ENDS*****************************************************/

  • Java Inflater problem decompressing Git packfile objects

    I have a Git packfile that I have saved as a file from the git-upload-pack
    command. I want to read through the packfile, decompressing each of the
    objects. Each object is compressed in the packfile using zlib compression.
    My little inflater procedure works fine for a tiny HelloWorld project. So, I
    decided to mix it up a little and use the jEdit source for a larger test. I
    am 99% certain the jEdit.git packfile itself is ok as I have passed it
    through directly to eGit's Import using an SSH proxy and eGit unpacked it
    just fine.
    So, my inflater method decompresses the first 7 objects fine (a commit, a
    couple of trees, and several blobs) and a cursory visual inspection of the
    decompressed data seems fine. The eighth object becomes a problem, though.
    It is a blob with the name build.xml that is 51,060 bytes decompressed
    (looking at the original pre-git-pushed jEdit source). The actual file size
    matches the decompressed data content size in the packfile object header.
    The inflater procedure outputs the decompressed data to System.out for
    visual inspection. Approximately the first 1/3 looks like the original
    build.xml but after that, the output is garbled. The procedure continues
    decompressing objects after the 8th, but garbled, object but it dies on the
    9th object with an "unknown compression method" error.
    So I created a new test inflater to focus only on decompressing the 8th
    object. Simply opening the packfile, copying out the compressed data (7793
    bytes), and inflating it yields the same 2/3 garbled xml.
    As a further test, I then take the original build.xml file, compress it
    using java's Deflater (yielding a 7793 byte array), and then inflate it
    using my same procedure and it decompresses fine. All of the xml is
    readable.
    Now, I have tried several variations of an inflater procedure, including an
    patchwork variation from jGit's WindowCursor.inflate method. But they all
    yield the same garbled result for the compressed build.xml data.
    Ideas?

    oops. sorry!
              try {
                   byte[] packFile = readFile("/Users/marcos/GitProxyCache/jedit.pack");
                   //THE BELOW OBJECT DECOMPRESSES FINE
              //Object starts at index 8616
              //Type = 3, Decompressed size = 2248 (uses 2 extra size bytes)
                   //byte [] packDataWindow = new byte[8000];
                   //System.arraycopy(packFile, 8619, packDataWindow, 0, packDataWindow.length); //works
                   //THE BELOW OBJECT FAILS TO INFLATE
                   //IT CAUSES an "incorrect data check" error
              //Object starts at index 9470
              //Type = 3, Decompressed size = 51060 (uses 2 extra size bytes)
                   byte [] packDataWindow = new byte[8000];
                   System.arraycopy(packFile, 9473, packDataWindow, 0, packDataWindow.length); //does not work
                   Inflater decompresser = new Inflater();
                   decompresser.setInput(packDataWindow, 0, packDataWindow.length);
                   byte[] result = new byte[60000];
                   int resultLength = 0;
                   resultLength = decompresser.inflate(result);
                   String outputString = new String(result, 0, resultLength, "UTF-8");
                   System.out.println(outputString);
                   decompresser.end();
              } catch (Exception e) {
                   e.printStackTrace();
              }

  • I am not able to launch FF everytime i tr to open it, it says FF has to submit a crash report, i even tried doing that and the report was submitted too, but stiil FF did not start, and the problem still persists, please help me solve this issue in English

    Question
    I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
    '''(in English)'''

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • BOSD, Battery issues and Heating problem after iOS 8 upgrade

    i have upgraded my iPad mini to iOS 8. Ever since I upgraded to iOS 8 am facing blue screen issues and heating problem as well. This is really frustrating even the patch iOS 8.0.2 dint solve the problem. Are you guys listening our complaints. When will you fixing it.

    The same thing happened to me on my 2012 Subaru Outback.  I'm not sure this will help you since you have a Honda, but I'm posting this just in case.
    I paired the audio on my car with my iPhone 6.  However, when I turned the car off and back on again, the iPhone would not pair automatically.  I had to manually connect the iPhone with the car.  Turns out there are two separate bluetooth pairings on my car: one for phone which allows up to 5 devices and one for audio which allows only one device.  So I did the second bluetooth pairing for the phone (had already done the audio), and that fixed it.  YMMV

  • I am making code to try to make a game and my problem is that my code......

    I am making code to try to make a game and my problem is that my code
    will not let it change the hit everytime so im getting the first guy to hit 1 then next hits 8 and so on and always repeats.
    Another problem is that I would like it to attack with out me telling it how much times to attack. I am using Object oriented programming.
    Here is the code for my objects:
    import java.lang.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.util.Random;
    import static java.lang.Math.*;
    import java.awt.*;
    import java.awt.color.*;
    class rockCrab {
         //Wounding formula
         double sL = 70;                                   // my Strength Level
         double bP = 1;                                   // bonus for prayer (is 1 times prayer bonus)
         double aB = 0;                                 // equipment stats
         double eS = (sL * bP) + 3;                         // effective strength
         double bD = floor(1.3 + (eS/10) + (aB/80) + ((eS*aB)/640));     // my base damage
         //Attack formula
         double aL = 50;                                   // my Attack Level
         double eD = 1;                                   // enemy's Defence
         double eA = aL / eD;                              // effective Attack
         double eB = 0;                                   // equipment bonus'
         double bA = ((eA/10) * (eB/10));                    // base attack
         //The hit formula
         double fA = random() * bA;
         double fH = random() * bD;
         double done = rint(fH - fA);
         //health formula
         double health = floor(10 + sL/10 * aL/10);
         rockCrab() {
         void attack() {
              health = floor(10 + sL/10 * aL/10);
              double done = rint(fH - fA);
              fA = random() * bA;
              fH = random() * bD;
              done = rint(fH - fA);
              System.out.println("Rockcrab hit" +done);
    import java.lang.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.util.Random;
    import static java.lang.Math.*;
    import java.awt.*;
    import java.awt.color.*;
    class self {
         //Wounding formula
         double sL = 1;                                   // my Strength Level
         double bP = 1;                                   // bonus for prayer (is 1 times prayer bonus)
         double aB = 0;                                 // equipment stats
         double eS = (sL * bP) + 3;                         // effective strength
         double bD = floor(1.3 + (eS/10) + (aB/80) + ((eS*aB)/640));     // my base damage
         //Attack formula
         double aL = 1;                                   // my Attack Level
         double eD = 1;                                   // enemy's Defence
         double eA = aL / eD;                              // effective Attack
         double eB = 0;                                   // equipment bonus'
         double bA = ((eA/10) * (eB/10));                    // base attack
         //The hit formula
         double fA = random() * bA;
         double fH = random() * bD;
         double done = rint(fH - fA);
         //health formula
         double health = floor(10 + sL/10 * aL/10);
         self() {
         void attack() {
              health = floor(10 + sL/10 * aL/10);
              fA = random() * bA;
              fH = random() * bD;
              done = rint(fH - fA);
              System.out.println("You hit" +done);
    }Here is the main code that writes what the objects do:
    class fight {
         public static void main(String[] args) {
              self instance1 = new self();
              rockCrab instance2 = new rockCrab();
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
              instance2.health = instance2.health - instance1.done;
              System.out.println("You hit: " +instance1.done);
              System.out.println("rockCrabs health: " + instance2.health);
              instance1.health = instance1.health - instance2.done;
              System.out.println("RockCrab hit: " +instance2.done);
              System.out.println("rockCrabs health: " + instance1.health);
    }when the code is run it says something like this:
    you hit 1
    RockCrabs health is 9
    RockCrab hit 7
    your health is 38
    you hit 1
    RockCrabs health is 8
    RockCrab hit 7
    your health is 31
    you hit 1
    RockCrabs health is 7
    RockCrab hit 7
    your health is 24
    you hit 1
    RockCrabs health is 6
    RockCrab hit 7
    your health is 17
    my point is whatever some one hits it always repeats that
    my expected output would have to be something like
    you hit 1
    RockCrabs health is 9
    RockCrab hit 9
    your health is 37
    you hit 3
    RockCrabs health is 6
    RockCrab hit 4
    your health is 33
    you hit 2
    RockCrabs health is 4
    RockCrab hit 7
    your health is 26
    you hit 3
    RockCrabs health is 1
    RockCrab hit 6
    your health is 20
    Edited by: rade134 on Jun 4, 2009 10:58 AM

    [_Crosspost_|http://forums.sun.com/thread.jspa?threadID=5390217] I'm locking.

  • Remote and IR Problem

    A rather odd and annoying problem has recently been occuring on my MBP. A couple days ago my remote (after working without fail for over a year now) suddenly stopped working. Yesterday night and this morning it started working again but after a while it stopped again. I've read dozens of support articles which haven't really helped because there seems to be another problem.
    Most articles have stated that there is an option to disable the IR receiver in the "security" window under system preferences. When the IR and remote are not working this option disappears but when they are working the option is present. I have also tried replacing the battery without any result.
    I am now thinking that it might have something to do with heat buildup because it is mainly occuring after the laptop has been on for about a half hour, so I am going to try to borrow someone's fan.
    If anyone has any suggestions to solve this I would appreciate it if you could help. Thanks!
    MacBook Pro 1.83 GHz   Mac OS X (10.4.9)  

    check out this thread. Seems to be the same problem.
    http://discussions.apple.com/thread.jspa?messageID=4701905&#4701905

  • LG Ally text message and gps problems

    hello. ive been with verizon for about 10 years maybe. ive been overall happy with the service and customer service. but the prices should be alot lower.lol. i started out with the motorolas then switched to the lg phones. only problem with the motorola was the speakers. not loud enough. could never hear the phone ring. the lgs usually suffer from the same problem.
    i had a few phone problems but nothing like this lg ally. im on my second one and about to be my 3rd one in about 3 months. 1st phone i had every problem under the sun. this phone i am suffering from text message problems and gps problems. i suffer from what everyone else has problems with. the messages wont send. they will eventually lock up. it will show the envelope with the red explanation point ( i think thats the graphic). then usually everytime when i sent a text the texts will close. it will send then bounce back and show up as a draft and i have to resend it and wait for it to go thru. finally the last problem with the texts. when i send a text a phone number from my contacts shows up and freezes on the screen. its in white text with a black background. its the same number every time. it stays on the screen until i restart or pull my battery out.
    gps. when i open up google gps that comes with the phone i make sure the gps is on... when the directions are found and the map pops up 9 out of 10 times it just keeps saying searching for gps. the turn by turn never is found. the 1 time it does it takes a good 10 minutes to be found. atleast on my first one ally the gps did work 8 out of 10 times. it just took a good 5-10 minutes for gps to be found and show turn by turn.
    anyone else have these problems? where you able to fix them or did you need to get a new phone? the 2.1 update was supposed to fix problems. i think they just made it worse. the ally is supposed to have 2.2 froyo. where is it. is it ever going to get it. i got this phone because i like the lgs and the keyboard. also the sales representative on the phone was giving the lg ally rave reviews. why couldnt he say dont buy this go with a motorola droid. this phone is the biggest junk ever made

    I do apologize you are having trouble with your device I looked in our information system on the LG Ally in reguards to issues you are having it states if you have the Free Droid Security anti virus protection application down loaded it will cause the phone to lock up or freeze. Check and make sure you do not have the application on your device. Check you GPS settings and make sure correct. Go to Settings; Location & Security; make sure GPS is on wireless network. If this does not fix issue you can try doing a Master Reset on your device. Make sure your contacts are saved in your G-mail account or through Back Up Assistance.
    Master Reset/Soft Reset:
    Factory Reset option 1
    From the main screen, touch menu tab
    Touch Settings
    Touch Privacy
    Touch Factory Data reset
    Touch Reset Phone
    Warning: This will erase all data from your phone, including:
    Your Google account
    System and application data and settings
    Downloaded Applications
    It will not erase: Current System software and bundled applications; SD Card files, such as music or Photos
    Factory Reset option 2  - Warning this will reset device back to original factory settings.
    Turn off the phone
    Press and hold "home" + "end" + "volume up or down" keys together for a few seconds when the device is power off
    Once device displays boot information, release keys.
    Soft Reset
    Press the Power key.
    Touch Power off.
    Touch OK.
    Press the Power key to power on the device.
    or
    Remove battery cover, remove battery and reinstall.Also there is a new update for LG Ally it will be the Froyo 2.2 but there is not release date available at this time it will post on your device when available. Hope this Helps. Leslie

  • I am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!

    i am deleting files through my trash in my macbook pro (2010) and then emptying the trash can, but my hard disk space is not increasing! i recently upgraded to lion and the problem is new, wasn't the same with snow leopard! HELP!!!!!
    When i press command+I (Get Info) i see that there is 140 GB "Available Space" on my hard disk but when i click on my hard disk icon on the desktop, and then press "space" i only see 102 GB free!! What the f*???
    Please HELP!!!!!! Getting second thoughts on Lion!!!!

    Hi b,
    Have you restarted yet?

  • How do I fix my ipod classic that says very low batter after I have charged it and the problem persists?

    I have an Ipod video 30g that says Please wait very low battery. I charged it for about a day and the problem persists. I've tried using some solutions on the internet and none of them worked including: holding the menu and select, holding select and play to put it in disk mode with no avail. Is there anyone who can help me!!!

    Have you read this post written by another forum member?
    The Sad iPod icon.
    However, as your iPod was purchased on Boxing Day, why not get it serviced under the warranty?
    You can arrange online service here.
    Service request.
    Or if an Apple store is near you, take it there and have them check your iPod.
    You can make an appointment by using this link.
    Genius Bar Appointments.

  • It's so annoying!! I have created a new Apple ID but after I click verify it just goes back to the previous page!!! It''s really frustrating I have tried for more than 4H, and the problem is not about the apple ID. I can download apps with the apple ID, w

    It's so annoying!! I have created a new Apple ID but after I click verify it just goes back to the previous page!!! It''s really frustrating I have tried for more than 4H, and the problem is not about the apple ID. I can download apps with the apple ID, which means IMessage is the problem! I restarted my iPad, I logged in and out of the apple ID in the store, AND YET IT STILL WON'T WORK, PLEASE HELP!

    Hi Vmanfromusa!
    It sounds like you are having an issue with activating your iMessage app on your iPad. An article outlining some troubleshooting steps for this issue can be found here:
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • I bought a song on ITUNES and had problems downloading it. I got in touch with support and and they downloaded the song to my account but now when I try to play it, it tells me my computer isn't authorized to . Reauthorizing computer doesn't work. HELP

    I bought a song in ITUNES and had problem downloading it. I contacted support and they downloaded the song for me. Now when I try to play the song, I get a message saying my computer isn't authorized to play it. I try reauthorizing but that doesn't work, just keep getting the same message. Can anyone help?

    Hello
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    Best of luck,
    Mario

  • Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,change remotes, no change.Help please.

    Purchased a new Apple TV and the remote double clicks each time I press the button. It worked fine during set up and for the first two days.  I have since moved it and this problem started. Restarted,reset,unplugged,changed remotes, no change. Latest software update. This is really annoying.  iPhone remote app works just fine.  Any suggestions?

    That's one of the weird things.. it recognizes it maybe 10% of the time. And usually, only after I do the two-button reset. Problem is.. since it won't charge above 2%, anytime I try to do a restore or anything like that using iTunes, my device shuts off and I lose whatever progress I'd made.
    So, an update... after reading through a bunch of similar complaints (there are literally 1000's of them so there's NO WAY this isn't somehow ios7 related, thanks a lot APPLE ) I decided to try a restore in recovery mode. After 3 hours and several disconnections... I ended up having to just set it up as a new iPad, as the restore did nothing. Weirdly though... as I was doing the restore in recovery mode.. I noticed I'd gotten up to a 10% charge.. higher than it's been since September, so after setting it up as a new device, I turned it off and plugged it in using the wall charger. 2 hours later and I was up to 38%. Still not great, as my iPad, before ios7 could've fully charged twice in the amount of time it took for me to now get 28% more of a charge. And that's with a fully cleaned out device.. so that really ***** and I'm now more confused than ever.
    But I'm gonna leave it overnight charging and see what I come up with tomorrow. Sadly, when I paid $600 for it in February, I never expected to have to play "wait and see" with it...

  • I mean that i phone take time to open apps ,contact ,etc why? i close all apps and the problem still?

    i mean that i phone take time to open apps ,contact ,etc why? i close all apps and the problem still?

    Try a reset by pressing and holding the home and power buttons for 15-20 seconds until the white Apple logo appears.

Maybe you are looking for

  • APEX application starts very slow

    Hi all, I have developed a small apex application for my website. I am running this application on OracleXE. Every time I when I log in the response is extremily slow. It will take approx. 1 min before the login page appears, then it takes another 20

  • How can I fix my iSight settings when it works on one account and not the other?

    iSight continually crashes third party applications. I've checked another account on my MBP, and iSight works on different accounts. What settings can I troubleshoot on the account? Thank you!

  • Event Handlers - Bulk Orchestration

    I have the following code working in a post process event handler EventResult execute(), and need to "convert" it to work in BulkEventResult execute(): public EventResult execute(long processId, long eventId, Orchestration orchestration) { entityId =

  • My SWF got problems in AIR

    I created an SWF, named e-Notice.swf, when I test Movie, publish setting was Flash Player 10. And I copied e-Notice.swf to a directory under Apache, so it can be accessed by URL: http://localhost/shadow-enotice-cms/e-Notice.swf Note:under C:\Program

  • Noise reduction f(ISO,Camera) ?

    Could there be some kind of "Preset" (I could prepare for my husband/wife) so that images from a basic camera are imported with preset noise reduction ? I would adjust NR parameters for different ISOs. Kind of Lens Correction f(F,f,Camera). Out-of-pi