Forum Discussion
BIGIQ not returning the same bytes as manually downloaded ucs file
hi,
I am using java API calls to get the *.UCS file from BigIQ server. The file obtained using API calls is different from the manual download from the BigIQ server. I am using Content-Range in each call.
1/To start i am using
contentRangeStr = [0-63487/0].
1a/return header is:
header.getName() = [Content-Length], header.getValue()63488].
2/ follow by contentRangeStr = [63487-126975/71179246]
2a/return header is:
header.getName() = [Content-Length], header.getValue()63489].
2 to 2a will repeat until end of file but the content-range will change. Notice that the header.getValue is always 1 more than 63488 after bullet 2/. Do you know why?
last chunk: contentRangeStr = [71170047-71179245/71179246]. header.getName() = [Content-Length], header.getValue()9199]. httpErrCode11 = [200].
When i try and uncompress before extracting this API return file i am getting error "java.util.zip.ZipException: invalid code lengths set"
I did a hexdump compare and i find there are differences between the API call downloaded file with the manually downloaded file. The difference occurs in the first chunk of the file.
On my manually downloaded file at line 493,494,495 below:
00001ec0 42 41 35 09 32 c3 e1 a5 9e 43 0f d3 1a 09 ff 0b |BA5.2....C......|
00001ed0 9b c3 ab ac 14 8a 98 40 aa 12 e9 92 b8 5f 18 12 |.......@....._..|
00001ee0 30 5a 50 f2 05 06 89 35 2d 04 c9 54 b8 d7 8d 80 |0ZP....5-..T....|
The API call downloaded file at line 493,494,495 below:
00001ec0 42 41 35 09 32 c3 e1 a5 9e 43 0f d3 1a 09 ff 0b |BA5.2....C......|
00001ed0 9b 0d 6c 58 ce 7c 1f 9e fc 5f b0 58 24 bf 56 42 |..lX.|..._.X$.VB|
00001ee0 8d 50 5e 42 c0 91 1a 2a 1b 8d c4 51 62 49 58 aa |.P^B...*...QbIX.|
Note that these 2 files above from line 0 to 493 are exactly the same. Does anyone know why there is this difference?
I am seeing difference at the end of these 2 files at line 3967 in manually download file:
0000f7e0 33 68 4f 44 8c df 8f 21 1d 2e 1f f6 e8 cc 2b 7c |3hOD...!......+||
0000f7f0 79 81 0b d3 b2 79 d8 6f dc dc b1 75 dc 0a c2 4c |y....y.o...u...L|
0000f800 70 fc e4 1d 86 74 12 57 a6 2e 80 59 b2 eb 40 9c |p....t.W...Y..@.|
API download file at line 38886 below:
0000f910 68 4f 44 8c df 8f 21 1d 2e 1f f6 e8 cc 2b 7c 79 |hOD...!......+|y|
0000f920 81 0b d3 b2 79 d8 6f dc dc b1 75 dc 0a c2 4c 21 |....y.o...u...L!|
0000f930 fb 16 d4 1b 38 5a 13 0e b2 b8 fa 08 71 8b 70 b5 |....8Z......q.p.|
Any help is really appreciated.
-wailing
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com