This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I want to store the byte array values I am getting, each time I iterate through the for loop. could you please tell me how can i store the byte array into an another array and after storing going to the next iteration in the for loop to get the another.
1. You arbitrarily create b with a length of 5 but then loop with a upper bound of doc.getPageCount(). 2. I have not idea what doc or CMBPage are, but why do you only access page 0, not page i? 3. Why do you define a? 4. Where is baos defined? you call toByteArray repeatedly. Does the other code in the loop have some side effect on what toByteArray returns?
There is no emoticon for what I am feeling!
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com