HttpClient 4 is not reading gzip content properly

Hi,
I'm struggling with this issue when trying to handle some data from an Url. The returned content is ok (checked with wireshark), Content-Length header is set correctly too.
I've tried to debug and find the source of this problem, but it's somewhere deep inside the core classes. What may be worth mentioning is that the content length is > 1460 bytes (a single tcp frame) - actually, it's around 6-10 kbytes, so multiple frames will be read before reassembling the http response. Actually, the first frame looks ok everytime (I've inspected the hex dump). The problem comes, like I said before, when multiple tcp frames are required.
Has anyone encountered this problem? It would help a lot, thanks.
ps: no "deflate" encoding is available :(

I did a bit of debugging, I can reproduce the problem using the code below. You can copy-paste it and try for yourself.
My host:
OS :
Linux ... 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux
Java :
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)
Output of the code below:
Entity present, length: 319793
0-bytes : 317097
Non 0-bytes : 2696
(also the byte-to-number mapping is displayed, but hidden in this post)
Hope this makes everything clear.
     public static void main (String[] args) throws IOException {
          HttpClient client = new DefaultHttpClient();
          HttpResponse resp     public static void main (String[] args) throws IOException {
          HttpClient client = new DefaultHttpClient();
          HttpResponse response = client.execute(new HttpGet("http://en.wikipedia.org/wiki/New_york"));
          HttpEntity entity = response.getEntity();
          printHttpEntity(entity);
     private static void printHttpEntity(HttpEntity entity) throws IOException {
          if (entity != null) {
               System.out.println ("Entity present, length: " + entity.getContentLength());
               // Read the whole contents at once
               byte[] contents = new byte [(int) entity.getContentLength()];
               entity.getContent().read(contents);
               int zeroByte = countZeroBytes(contents);
               System.out.println ("0-bytes : " + zeroByte);
               System.out.println ("Non 0-bytes : " + (contents.length - zeroByte));
               SortedMap<Byte, Integer> map = mapBytesToDistro(contents);
               for (Entry<Byte, Integer> e : map.entrySet()) {
                    System.out.println (e.getKey() + " => " + e.getValue());
     private static int countZeroBytes (byte[] contents) {
          int count = 0;
          for (int i = 0; i < contents.length; i++) {
               if (contents == 0)
                    count ++;
          return count;
     private static SortedMap<Byte, Integer> mapBytesToDistro (byte[] contents) {
          SortedMap<Byte, Integer> map = new TreeMap<Byte, Integer>();
          for (int i = 0; i < contents.length; i++) {
               if (!map.containsKey(contents [i]))
                    map.put(contents [i], new Integer(0));
               map.put(contents [i], map.get(contents [i]) + 1);
          return map;
     }onse = client.execute(new HttpGet("http://en.wikipedia.org/wiki/New_york"));
          HttpEntity entity = response.getEntity();
          printHttpEntity(entity);
     private static void printHttpEntity(HttpEntity entity) throws IOException {
          if (entity != null) {
               System.out.println ("Entity present, length: " + entity.getContentLength());
               // Read the whole contents at once
               byte[] contents = new byte [(int) entity.getContentLength()];
               entity.getContent().read(contents);
               int zeroByte = countZeroBytes(contents);
               System.out.println ("0-bytes : " + zeroByte);
               System.out.println ("Non 0-bytes : " + (contents.length - zeroByte));
               SortedMap<Byte, Integer> map = mapBytesToDistro(contents);
               for (Entry<Byte, Integer> e : map.entrySet()) {
                    System.out.println (e.getKey() + " => " + e.getValue());
     private static int countZeroBytes (byte[] contents) {
          int count = 0;
          for (int i = 0; i < contents.length; i++) {
               if (contents [i] == 0)
                    count ++;
          return count;
     private static SortedMap<Byte, Integer> mapBytesToDistro (byte[] contents) {
          SortedMap<Byte, Integer> map = new TreeMap<Byte, Integer>();
          for (int i = 0; i < contents.length; i++) {
               if (!map.containsKey(contents [i]))
                    map.put(contents [i], new Integer(0));
               map.put(contents [i], map.get(contents [i]) + 1);
          return map;

Similar Messages

  • Help required please. "Itunes can not read the contents of my iphone"

    Greetings all,
    I know this question has been asked before and I apologize for asking again but all the solutions provided don't seam to work for me, can anyone help me please.
    I am receving the message: "Itunes can not read the contents of the iPhone. Go to the summary tab In iPhone Preferences and click restore torestore this Iphone to factory settings".
    Now a little about my iphone, Itunes and my laptop and what steps i havealready tried.
    I have an iPhone 4 running software 5.0
    My itunes version is 10.5.0.142
    I know these are not the most up to date versions but I have had this issue for almost 3 months now and updating the software back then was the first step I tried. I don’t believe updating to the latest will fix this issue as updating the last two times did nothing.
    Every so often after starting Itunes, The program will stop responding and will require the three finger death kill (CTRL, ALT, DELETE) to open task manager to end the task of Itunes. Once it shuts down, I restart the iTunes and it runs smoothly, apart from not reading my iPhone.
    When I run a diagnostic in itunes under the help tab, I get these fail messages:
    Network Connectivity test: Secure link to Itunes store fail
    Device connectivity test: Under support services: Itunes helper is not running. And under ports: No iPod, iPhone or iPad found.
    Device Sync test: No iPod touch, iPhone or iPad found.
    *See below for full diagnostic report*
    I have restored back to factory settings twice.
    I have shut down and restarted both my iPhone and laptop.
    I am running Windows 7 32-bit on my laptop.
    I am using ZoneAlarm as my fire wall, and have been disabling it when syncing my iPhone to prevent other error messages.
    The iPhone is plugged into a genuine Iphone USB cable and is plugged into a USB port not a USB hub on my laptop, I have tried plugging it into all 4 USB ports and this issue still persist. The Cable is less then 5 months old, is not frayed or damaged in any way, have also borrowed 2 other cables from friends and still the same issue.
    The iPhone does not even come up in windows explorer as a digital camera.
    The iPhone is NOT jailbroken
    I do not live close to a so called genius bar, however I have made the journey to them on 3 separate occasions last year when I first received my iPhone for a different issue, the so called genius's could not fix the problem so they just gave me a new (refurbished) iPhone, which did not extend my warranty. I will not be taking the iPhone back to them as I believe they can not resolve many issues, this is why I am reaching out to the power of the people in the wider apple community.
    I have read in other forums about ifunbox and other programs for jail broken iPhones to isolate folders “iTunesDB” and "iTunesCDB" and delete them. If this is the issue is there a way to access these files through windows explorer as my iphone is not jailbroken.
    I hope I have provided enough information and someone can help me fix this issue. If I have left anything out, please let me know. I thank everyone in advance for your patience and support.
    Thanks
    Hoggie27
    FULL DIAGNOSITC REPORT
    Microsoft Windows 7 Home Premium Edition Service Pack 1 (Build 7601)
    Hewlett-Packard HP Pavilion dv6 Notebook PC
    iTunes 10.5.0.142
    QuickTime not available
    FairPlay 1.13.35
    Apple Application Support 2.1.5
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 4.0.0.96
    Apple Mobile Device Driver 1.57.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.3.494
    Gracenote MusicID 1.9.3.106
    Gracenote Submit 1.9.3.136
    Gracenote DSP 1.9.3.44
    iTunes Serial Number 001BAD14XXXXEA78
    Current user is an administrator.
    The current local date and time is 2011-11-16 10:04:53.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Core Media is supported.
    Video Display Information
    NVIDIA, NVIDIA GeForce GT 230M 
    **** External Plug-ins Information ****
    No external plug-ins installed.
    The drive H: Vodafone  USB SCSI CD-ROM Rev  USB is a USB 1 device.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name:    {97524DB0-B9DC-41DB-8AFA-0CE6938F7C95}
    Description:    PC
    IP Address:    (HAS BEEN REMOVED FOR PERSONAL REASONS)
    Subnet Mask:    255.255.255.255
    Default Gateway:    0.0.0.0
    DHCP Enabled:    No
    DHCP Server:   
    Lease Obtained:    Thu Jan 01 11:00:00 1970
    Lease Expires:    Thu Jan 01 11:00:00 1970
    DNS Servers:    10.143.147.147
            10.143.147.148
    Adapter Name:    {BFF0456E-DE42-4FEF-B1FA-1EA1C5EDEE42}
    Description:    Vodafone Mobile Broadband Network Adapter (ZTE)
    IP Address:    0.0.0.0
    Subnet Mask:    0.0.0.0
    Default Gateway:    0.0.0.0
    DHCP Enabled:    No
    DHCP Server:   
    Lease Obtained:    Thu Jan 01 11:00:00 1970
    Lease Expires:    Thu Jan 01 11:00:00 1970
    DNS Servers:   
    Adapter Name:    {D5511FFD-0CA8-4F62-B3CA-E90384FFCD03}
    Description:    Broadcom 43225 802.11b/g/n
    IP Address:    0.0.0.0
    Subnet Mask:    0.0.0.0
    Default Gateway:    0.0.0.0
    DHCP Enabled:    Yes
    DHCP Server:   
    Lease Obtained:    Thu Jan 01 11:00:00 1970
    Lease Expires:    Thu Jan 01 11:00:00 1970
    DNS Servers:   
    Active Connection:    PC
    Connected:    Yes
    Online:        Yes
    Using Modem:    Yes
    Using LAN:    No
    Using Proxy:    No
    SSL 3.0 Support:    Enabled
    TLS 1.0 Support:    Enabled
    Firewall Information
    Windows Firewall is on.
    iTunes is NOT enabled in Windows Firewall.
    ZoneAlarm Firewall is installed.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was unsuccessful.
    The network connection timed out.
    Connection attempt to Gracenote server was successful.
    Last successful iTunes Store access was 2011-11-16 09:59:57.
    **** CD/DVD Drive Tests ****
    LowerFilters: Afc (1.0.0.2),
    UpperFilters: GEARAspiWDM (2.2.0.1),
    F: hp CDDVDW TS-L633N, Rev 0300
    Drive is empty.
    **** Device Connectivity Tests ****
    iPodService 10.5.0.142 is currently running.
    iTunesHelper is currently not running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Intel(R) 5 Series/3400 Series Chipset Family USB Enhanced Host Controller - 3B34.  Device is working properly.
    Intel(R) 5 Series/3400 Series Chipset Family USB Enhanced Host Controller - 3B3C.  Device is working properly.
    FireWire (IEEE 1394) Host Controllers:
    1394 OHCI Compliant Host Controller.  Device is working properly.
    Most Recent Devices Not Currently Connected:
    iPhone 4 (GSM) running firmware version 5.0
    Serial Number:    85107XQLA4S
    **** Device Sync Tests ****
    No iPod, iPhone, or iPad found.
    < Edited By Host >

    Hi AM_Kidd.
    Thanks for your reply.
    I have done a complete uninstall and re install of iTunes and all related apple programs from my laptop through control panel, add remove programs and also by going through program files and deleting all tracers of any left over folders remove programs may have missed.
    My apologies for forgetting to add this in my original post.
    Thanks again

  • I am not able to Sync. My iPOD classic 80Gb. It tells that as iTunes can not read the contents-restore to factory settings- after restoring – it tells that it can not be restore bcause there are files that are used by other application. I am having Widows

    I am not able to Sync. My iPOD classic 80Gb. It tells that as iTunes can not read the contents-restore to factory settings- after restoring – it tells that it can not be restored bcause there are files that are used by other application. My iPOD appears in My Computer in drive H as a mass storage generick volume

    Try disabilng the Enable Disk Use option from under the iPod's Summary tab, applying the changes, and seeing if that helps.
    Otherwise, temporarily disabling any antivirus, security, firewall, or file indexing software that may be running on your system and then try restoring your iPod again.
    B-rock

  • TS1363 itunes can not read the contents of the iphones "iphone 5s" go to summary tab in iphone preferences... . "what is this means?" "what i do????"

    itunes can not read the contents of the iphones "iphone 5s" go to summary tab in iphone preferences... . "what is this means?" "what i do????"

    Hello there, Choochg.
    The following Knowledge Base articles offer up some great steps for how to restore your iPhone:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    and
    iCloud: Restore your iOS device from iCloud
    https://support.apple.com/kb/ph12521
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • I can not read any contents in my yahoo inbox messages? It is blank when i opened my message. Are there any setting or updated that i missed? Please give me some advices? Thank you. Phuong

    Question:
    I can not read any contents in my yahoo inbox messages? It is blank when i opened my message. Are there any setting or updated that i missed? Please give me some advices? Thank you. Phuong

    Hi AM_Kidd.
    Thanks for your reply.
    I have done a complete uninstall and re install of iTunes and all related apple programs from my laptop through control panel, add remove programs and also by going through program files and deleting all tracers of any left over folders remove programs may have missed.
    My apologies for forgetting to add this in my original post.
    Thanks again

  • Labview not reading csv file properly.

    I'm trying to use the read spreadsheet file vi to read the attached csv.
    It does a few things incorrectly:
    1) the first cell of the resulting array has ÿþ appended to the front of it, seems like labview is grabbing some special character it shouldn't? (Notepad, notepad++ and excel can all open the file without issue and none show ÿþ or anything like it).
    2) It's mistreating the EOL characters as two line feeds, resulting in blank rows between each data row. (Looking at the csv in notepad++ confirms that the lines are ended with a CR and a LF (same as EOL).
    3) I'm reading it in as a string, because one of the columns is non-numeric, but then I strip that column out and attempt to convert the remaining string array into a numeric array (this fails). It also fails if I pull out an individual element of the array and attempt to convert it to a number (in both cases using fract/exp string to number), below I have an example of trying to read the 2nd column of the 1st row (index: 0,1) which is formatted as a string: "1.37238168716431" and converting that into a number gives 0 as you can see in the snapshot of the front panel.
    Solved!
    Go to Solution.
    Attachments:
    REPORT02.CSV ‏4 KB

    I guess the file is in unicode, that doesn't help me very much.
    I don't use the "Read from Text File Function" - at least not directly, although it is called in Read from Spreadsheet File. Where is it called, however, right-click doesn't show an option for Convert EOL, instead it's a terminal and it's default is F and as the terminal is disconnected, I'm assuming it's not converting EOL. So it's already "unchecked" in a sense.
    No idea how to convert the unicode string to ascii. (no functions show up when i search unicode or ascii in the manager). It displays it just fine in the text box, so I'm not sure why it's able to display it without issue but not read it as a number.
    Using Labview 8.6, by the way.

  • Itunes keeps telling my it can not read the contents of my iphone and that i need to reset it back to factory settings. I dont want to do that there is nothing wrong with my phone and my computer recongnizes that the phone is there.

    I tunes keeps telling me that it can not read my phone and it wants me to reset to factory setting there is nothing wrong with my phone and my computer reads the phone. What should I do I already did the restart of the apple mpbile device service.

    Do an iCloud-backup, reset the iPhone and restore is from the iCloud-backup.
    Let me know if it works

  • Will not download 1080p content properly

    I am attempting to upgrade my eligible content to 1080p.  All but two downloaded correctly (though that's debateable because it shows twice in iTunes).
    Anyway, I have two movies that say they can be downloaded, so I do.  I wait a few hours.  It's done, and it still displays as available to download.  I check in my Movies in iTunes and it now has 3 copies, all 720p, none 1080p.
    Unfortunately this is burning thorugh my bandwidth (which is capped).  I can't keep trying to redownload.
    Anyone else seeing similar problems?

    Yes, it looks like some movies are mislabled as being 1080p but are not. If you can verify if a movie is really in 1080p by looking up the movie in iTunes as if you were going to purchase it. If 1080p is avalaible it will be listed. You can control which one will be downloaded in iTunes preferences (mine is set to 1080p - see where is says "(Downloading 1080p)".
    For example Mission Impossible shows this information:
    The movie Salt is NOT available in 1080p:

  • How to add do not read file content option inside File Adapter (Synch Read)

    Hi,
    Is there any way, that I can skip reading the file content inside file adapter with operation as Synchronous Read ( I just want to read the file name and directory and if the file name matches with the input variables then I have to delete the files, for this i am using FA with synch read operation, everything is fine like deletion, but it is reading the file content and storing it in DB, i dont want this) .

    This will solve your problem.
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#CHDHIEBI
    HTH.
    Puneet.

  • I can not read folder content in Bridge CC

    I moved one sub folder in my external Segate Backup plus HD to another folder using bridge CC. At half way Bridge gave a warning saying that some files were not copied there might be a problem. Now I can not see the folder at all. From total size of the external drive I am guessing it is not deleted but I can not access.

    Sometimes ADE gets its registration/activation confused and in a semi-authorized state.
    Unfortunately, it often then gives misleading error messages about what is wrong.
    Messages like those you are seeing seem quite a common form of wrone message.
    Try completely removing any authorization using ctrl-shift-D to ADE (cmd-shift-D if on Mac).
    Restart ADE, and then reauthorize with your Adobe ID.
     

  • Webpages are not loading/downloading content properly.

    Almost all webpages I am visiting are not loading properly. The font appears very large, the images do not download, and there is no flash/animation.
    I have tried closing and reopening Firefox, and I already have the updated version installed. I did not see any available options in "View" to change the look of the pages. The pages this problem are most noticeable on are: www.msn.com, www.wellsfargo.com, and www.kob.com.

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    * http://kb.mozillazine.org/Zoom_text_of_web_pages
    See also:
    * http://kb.mozillazine.org/Images_or_animations_do_not_load
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • ITunes can not read the contents of the iPhone.

    I kept getting "iTunes cannot read the conects of the iphone" error message whenever I tried to sync my phone this morning. I went through all the troubleshooting steps and I know I would have had to factory restore to fix the problem. However after restarting both my iPhone and my PC the issue seems to be gone, im just wondering if this has experienced the same issue before? My iPhone has been said "no sim" a few times over the last week but i've been able to fix it with a hard reset. Im not sure if the two are related but im just looking for some input.

    For all those that are having the same problem..my media file was corrupted when they transfered pictures from my old phone to the iphone. So they had to wipe everything out and do a full restore.

  • XPATH not reading my xml properly.

    <?xml version="1.0"?>
    <xml class="1" index="0" xmlns="http://www.blablabla.com/lsr/blablalba"
         xmlns:testBase="http://www.blablabla.com/lsr/blablalba" service="localservicepreordering">
         <header>
              <testBase:interfaceid>testid</testBase:interfaceid>
              <testBase:actionrequired>No Validation</testBase:actionrequired>
              <testBase:applicationid>VFO</testBase:applicationid>
         </header>
         <lsng class="1" index="0">
              <pform>
                   <txnum class="0" index="0" fieldno="02">1187FRONTPO3A</txnum>
                   <dtsent class="0" index="0" fieldno="03">201001271341</dtsent>
                   <txtyp class="0" index="0" fieldno="04">B</txtyp>
                   <txact class="0" index="0" fieldno="05">U</txact>
                   <cc class="0" index="0" fieldno="07">ZBEL</cc>
                   <location>
                        <at class="0" index="0" fieldno="13">N</at>
                        <so class="0" index="0" fieldno="17">1600</so>
                        <sn class="0" index="0" fieldno="21">Market</sn>
                        <sh class="0" index="0" fieldno="22">St</sh>
                        <l1 class="0" index="0" fieldno="26">FL</l>
                        <l2 class="0" index="0" fieldno="27">17</l2>
                        <city class="0" index="0" fieldno="31">Philli</city>
                        <state class="0" index="0" fieldno="32">PA</state>
                        <zip class="0" index="0" fieldno="33">19103</zip>
                   </location>
                   <location>
                        <aft class="0" index="0" fieldno="13">N</aft>
                        <sano class="0" index="0" fieldno="17">1600</sano>
                        <sasn class="0" index="0" fieldno="21">Market</sasn>
                        <sath class="0" index="0" fieldno="22">St</sath>
                        <ld2 class="0" index="0" fieldno="26">FL</ld2>
                        <lv2 class="0" index="0" fieldno="27">17</lv2>
                        <city class="0" index="0" fieldno="31">Philli</city>
                        <state class="0" index="0" fieldno="32">PA</state>
                        <zip class="0" index="0" fieldno="33">19103</zip>
                   </location>
                   <rdata>
                        <reqnum class="0" index="0" fieldno="42">2159777290</reqnum>
                   </rdata>
              </pform>
         </lsing>
    </xml>
    I am trying to read this data using the xpath.. and its going crazy with out reading the xml.
    When I use the dom object to read this xml its failing to read the xml file.
    When i tried to remove the header part and read the xml file its working fine.
    I appreciate if some one can have the inputs in this.
    Thanks
    troubleshooter

    You aren't allowed to use element names which begin with "xml".

  • HT6154 i tunes cannot read the contents ofmy iphone.Asking me to go to the summary tab in iphone preferences and click restore to factory settings? I do not know how to get to the phone preferences tab, and won't this take out all of my contact info, musi

    I tunes does not read the contents of my iphone when plugged into my IMAC. It is asking me to go to the iphone preferences and hit restore? Does
    anyone know how I should do this? Will I lose all of my contacts, e-mails, etc. I did a backup on the phone to icloud as of now, but not sure
    what I should do just to sync with ITunes.

    That's right, there is an easier way, just check out my other answer to you:
    iMacange wrote:
    Otherwise, you can also do this if you're using a PC:
    1. Go to control panel where you can uninstall a program.
    2. Click on iTunes from the list of programs. There should be a button on top of the page that says “Repair”. Just click it.

  • Read the content of a file (via socket)

    Hi,
    I need to read the content of a file (.txt, or better, .jpg) and to write it again in another file.
    I have this code (in Javascript):
        conn = new Socket;
        conn.encoding = "BINARY";
        if (conn.open ("127.0.0.1:8888")) {
        conn.timeout=30;
        conn.writeln("GET variousFiles/file.jpg HTTP/1.1");
        reply = conn.read(999999);
        conn.close();
        var file = new File("C:/APPS/New_File.txt");
        file.encoding = 'BINARY';
        var open_file = file.open("w+");
        file.write(reply);
        } else { alert("Errore: " + conn2.error); }
    However my new file is always empty, because I can not read the content of the first file.
    My variable "reply" is always empty.
    Thanks and best regards.

    There is a particular case with sugested function, if content is generated on the fly by the server -php, cgi, etc.-
    In this case, http server doesn´t knows total size of response data, so response shows a chunked transfer-encoding header and data is parted in chunks, each one starting with it´s size, and following the data.
    HTTP/1.1 200 OK
    Date: Tue, 30 Apr 2013 12:43:41 GMT
    Server: Apache/1.3.31 (Win32) mod_fastcgi/2.4.1
    Connection: close
    Transfer-Encoding: chunked
    Content-Type: image/jpeg
    f49
    ÿØÿà  JFIF
    I´m using this function to decode parted response, with initial chunkedString with firs chunk size; in this case, f49:
    PartsSeparator="\r\n";
    function getPartedBody(partedBodyString) {
        var separatorPosition=partedBodyString.indexOf(PartsSeparator);
        var chunkSize=new Number("0x"+partedBodyString.substring(0,separatorPosition));
        separatorPosition+=PartsSeparator.length;
        var bodyString=new String("BINARY");
        bodyString="";
        if (chunkSize>0)
            bodyString=partedBodyString.substring(separatorPosition,separatorPosition+chunkSize)+
                getChunkedResponse(partedBodyString.substring(separatorPosition+chunkSize+PartsSeparator. length));
        return bodyString;
    Hope this helps
    regards

Maybe you are looking for

  • HT1420 how to reauthorize an old iPod ?

    I gave an old ipod to my brother. I now have too many devices so I have to deauthorize it. I don't see a choice to that listed only deauthorize all was listed.

  • Example of custom external authentication

    Where can I find the example of custom external authentication which Paul Encarnation has written since most of the links on the discussion forum mails seem to be outdated. Thanks

  • Cffile size

    I have a form that allows users to upload images. I want to limit the image size to 100k. I looked on google but could not find anything that works. Any help would be appreciated. jn

  • Does 10.6 provide a stable and robust server environment?

    Or is it still as fragile as 10.4 and 10.5 requiring endless nights spent resolving DNS issues, Open Directory error messages, Portable home issues, inconsistencies with the operation of preferences under workgroup manager etc.... to name just a few

  • Intel iMac to ext HD

    I have just bought an intel imac. I used to make a bootable backup of my old eMac(tiger) to an ext hd with carbon copy cloner. do I have to wipe the ext hd and reformat before I make a bootable back up of my current machine? or can I just go ahead wi