× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



>Problem:  a file is uploaded (binary) from a PC.
>I need to read it in MI to parse out the data.
>The size of the file is not known, I need to read until
>the end. I define a record size of (say) 10000 and
>start reading. I get the CVP5001 exception as usual
>at the end of the file, but the last (incomplete) block
>I don't get. How to get it?

Can you share a bit more of what is happening?

It looks as if you're uploading a stream file into a fixed length QSYS file
of arbitrary (here 10000) byte record length.  You are able to read record 1
(the first 10000) but not record 2 (the remaining 1000)?  Are you using the
same SEPT hook to read the member as in Chapter 13 of your eBook (16
QDBGETSQ)?
  --buck


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.