Re: [U2] Read and Writing binary files with UOJ

2013-09-03 Thread Dave Davis
UniBasic provides NOCONVERT ON for that. -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Rick Nuckolls Sent: Tuesday, September 03, 2013 1:12 AM To: U2 Users List Subject: Re: [U2] Read and Writing binary files

Re: [U2] Read and Writing binary files with UOJ

2013-09-02 Thread Doug Averch
Rick, It looks like you can do this with Universe UniBasic ReadBlk and we have working code. I have been unable to find any equivalent in Unidata. Thanks, Doug www.u2logic.com On Fri, Aug 30, 2013 at 6:15 PM, Rick Nuckolls r...@lynden.com wrote: Doug, Looking at my old code, I call a

Re: [U2] Read and Writing binary files with UOJ

2013-09-02 Thread Rick Nuckolls
I am not a UniData user, but thought that I had found the answer with OSBREAD -- reading a block, then noticed the note about OSBREAD converting a char(0) to char(128). Ouch. If you are on on Unix, you might use uuencode to convert it to base64 and then read that in pass it in a

Re: [U2] Read and Writing binary files with UOJ

2013-08-30 Thread Rick Nuckolls
Doug, Looking at my old code, I call a subroutine on the backend to do the readblk, and then use the default reverse conversion on the return argument's UniString. ( byte[] myBinary = myUnistring.toString().getBytes() ).. UOJ, in its wisdom, does not expose the raw byte array that it gets