Post Reply 
Files on HP Prime Question
05-21-2015, 03:43 PM (This post was last modified: 05-21-2015 03:44 PM by critor.)
Post: #17
RE: Files on HP Prime Question
(05-21-2015 03:07 PM)Tim Wessman Wrote:  
Quote:* Another idea would be to concatenate several PNG images into a single file, thus forming the document.

A PNG is zip file essentially. http://en.wikipedia.org/wiki/Portable_Ne...ompression
Quote:PNG uses a non-patented lossless data compression method known as DEFLATE, which is the same algorithm used in the zlib compression library.

This means that

Quote:Indeed, G1:=AFilesB(filename,offset,size) doesn't seem to work, even when offset is 0.

would be like getting a hex editor to pull out a small block from the middle of a .zip file and trying to use it directly. It just isn't possible as you don't have a fully formed zip archive will all the information needed to decompress it.

Thank you for your reply.
But I'm sorry, it seems you did misunderstand me.

A document may be made of hundreds of pages, which implies hundreds of images, and much more if you have several documents.

For users which want to have many documents in their HP-Prime, one way to make their life easier would be to concatenate all PNG pages from a single document into a single file.

Let me explain this the Linux-way :
Code:
cat page1.png page2.png page3.png > doc1.png

Then, "G1:=AFilesB("doc1.png",offset2,size2)" doesn't work.
And of course, offset2 and size2 are correct, delimiting a complete PNG (or ZIP if you prefer) image.

By the way, even "G1:=AFilesB(...)" doesn't work with a normal PNG.
So we're apparently forced to use "G1:=AFiles(...)", except that it doesn't accept offset and size parameters.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Files on HP Prime Question - mandresve - 05-14-2015, 01:48 AM
RE: Files on HP Prime Question - mandresve - 05-15-2015, 01:08 AM
RE: Files on HP Prime Question - mandresve - 05-15-2015, 04:30 AM
RE: Files on HP Prime Question - debrouxl - 05-15-2015, 07:57 PM
RE: Files on HP Prime Question - mandresve - 05-16-2015, 12:56 AM
RE: Files on HP Prime Question - debrouxl - 05-16-2015, 07:18 AM
RE: Files on HP Prime Question - mandresve - 05-16-2015, 11:39 PM
RE: Files on HP Prime Question - mandresve - 05-18-2015, 05:56 AM
RE: Files on HP Prime Question - critor - 05-20-2015, 10:10 PM
RE: Files on HP Prime Question - critor - 05-21-2015 03:43 PM
RE: Files on HP Prime Question - critor - 05-24-2015, 09:49 AM
RE: Files on HP Prime Question - jte - 05-21-2015, 06:38 PM
RE: Files on HP Prime Question - debrouxl - 05-21-2015, 06:02 AM
RE: Files on HP Prime Question - Adriweb - 05-21-2015, 03:48 PM
RE: Files on HP Prime Question - critor - 05-21-2015, 04:56 PM
RE: Files on HP Prime Question - critor - 05-21-2015, 06:45 PM



User(s) browsing this thread: 1 Guest(s)