Comments (7)
Hello @Akashkumar12 did you resolve it. I am also getting the same issue. Let me know if there's any solution for this. Thank you.
from zippex.
Hi
I am getting a similar error:
Line: 402, Column: 1
System.StringException: Starting position out of bounds: 1819193000
The Exception is thrown from the file Zippex.cls at line 402.
Based on the values of the variables it looks like the theStart and theEnd is way to high as the ZipFileString is only 1822 characters.
400: Integer theStart = offset+46;
401: Integer theEnd = theStart + HexUtil.hexToIntLE(fileNameLength);
402: fileName = zipFileString.substring(theStart*2, theEnd*2);// (f bytes) Offset 46
The file I am trying to read is an excel file.
Here is values of the variables used:
theStart = 909596500
theEnd = 909596500
fileNameLength =
zipFileString.length() = 1822
Here is the code I am running using Anonymous Apex in Developer Console.
List<Attachment> attList = [SELECT Id, Name, Body FROM Attachment WHERE ParentId='<Case ID>'];
if(!attList.isEmpty()){
Zippex sampleZip = new Zippex(attList[0].Body);
}
from zippex.
while reading Pdf file am getting System.StringException: Starting position out of bounds: 646326178.Can you please help me on this.
Thank you.
from zippex.
I am getting the same error:
System.StringException: Starting position out of bounds: 1194067618
from zippex.
I am getting the same error:
System.StringException: Starting position out of bounds: 1141229184
Could anybody help in this issue ....
from zippex.
I am facing the same issue.. Please let me know if anyone has resolved this issue.
Thank you in advance
from zippex.
I got this error everytime I tried to extract an corrupted ZIP File. Pay Attention which is the body of the BinaryAttachment. It should be a blob. During Testing convert your ZIP File into an HEX Value oder Base64String!
HEX
binaryAttachment.body = EncodingUtil.convertFromHex('YOUR HEX VALUE GOES IN HERE');
BASE64
binaryAttachment.body = EncodingUtil.base64DECODE('YOUR BASE64 ENCODED VALUE GOES IN HERE');
from zippex.
Related Issues (11)
- Apex CPU governor impact? HOT 6
- Do you meet the heap size limit ?
- Can we protect the zip with password? HOT 2
- Apex CPU time limit exceeded HOT 9
- Are the files (with classes) supposed to be saved as .cls or .apxc? I know it is a noob question, but better to not waste time if I am off base. HOT 1
- Copying files from one zip to another.
- This creates a zip file, but not a compressed zip file ... HOT 1
- Is there a Deflate implementation in the lib?
- Apex CPU time limit exceeded HOT 1
- Not a valid UTF-8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zippex.