in reply to Re: Re: Re: ESP+ Storage .rep repository
in thread ESP+ Storage .rep repository

Hi, thanks again. Following your words, I downloaded an uncompress.exe program. In addition, i was reading in detail your prograsms, specially reader.pm, but i can undertand some things. For example, were do you obtain the $COMPRESS_MAGIC_NUMBER, and the others parameters. In the other hand, can you explain me what is the structure of the record .rep file, start char, header lenght or position in the record, data, end of file. Or if you have documentation about that, i wiil appreciate this. I want email to the other person than you know that getting text back from ESP+ Storage repository. Particulary i want to know if they have a solution base on windows. I am thankful to you, if you let me know their emails. I am sorry, my english is not the best, but i hope you can undertand me. Thank you very much
  • Comment on Re: Re: Re: Re: ESP+ Storage .rep repository

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: ESP+ Storage .rep repository
by diotalevi (Canon) on May 27, 2004 at 22:02 UTC

    No, I can't give you that person's e-mail address. You've also gotten yourself on a tangent. There is nothing in Reader.pm that you should be looking at if you intend to extract your data. Go read http://search.cpan.org/src/JJORE/ESPPlus-Storage-0.01/eg/read.pl which is an example script for extracting the contents of a .REP file.

    If you really want to understand how a .REP file is structured then please learn perl to a sufficient level to understand my source code as provided in Reader.pm. I will not explain its structure separately from that code as there is no need to. I don't think you need to do this to accomplish the extraction goal that you have described to me.

      Thank you very much for your collaboration. I will follow your advice. Even though the time is a determining factor, I will try to learn Perl to understand the code of your programs in detail. If in the next days you decide to give me the emails of the other people, I will be highly thanked with you. Again I appreciate all your collaboration. You do not forget that you can contact to me whenever you want. Any thing that you need, please you do not doubt in writing to me. my email is rocasoc@hotmail.com
      Hi Joshua. I was reading in detail your programs code. Now i have the following problem. According with your programs the structure of the record in the .rep file is: header + ( magic number + compress body) <next record with the same structure> the header structure is: H=058;T=0;L=1086;C=3;U=1075863338;A=cto8;AFP=v02/04/04,o0; where H=058 indicate the lenght of the header in this case 58, L=1086 indicate the lenght of the uncompressed file . when i process the first record the resutl is ok, but with the next records the uncompress function produce a bad output. I extract the string between the magic number and the last caracter before the new header to produce the .z file, and then uncompress it. Please let me know where i have the error. Thanks again
        Your description is correct. The problem is in either your code or your data. You will have to show one or the other before I am able to tell you more.