Re: Problems with arrayencode/decode

2013-01-03 Thread Richard Gaskin
Peter Haworth wrote: I tried binary access and non-binary access but got the same problem either way. What file access mode results from using the get/put URL commands? Converted text: put url ("file:"& tMyFilePath) into tData Unaltered binary: put url ("binfile:" & tMyFilePath) into tData

Re: Problems with arrayencode/decode

2013-01-03 Thread Peter Haworth
Hi Richard, I tried binary access and non-binary access but got the same problem either way. What file access mode results from using the get/put URL commands? Pete lcSQL Software On Thu, Jan 3, 2013 at 6:14 AM, Richard Gaskin wrote: > Peter Haworth wrote: > >> Hi Phil, >

Re: Problems with arrayencode/decode

2013-01-03 Thread Richard Gaskin
Peter Haworth wrote: Hi Phil, Happy to say that worked. The only real difference is the use of get url and put url so not sure what was going wrong before but thanks for correcting it! Were you reading as "file" or "binfile"? I run encoded arrays through base64Encode for network transport, bu

Re: Problems with arrayencode/decode

2013-01-02 Thread Peter Haworth
Hi Phil, Happy to say that worked. The only real difference is the use of get url and put url so not sure what was going wrong before but thanks for correcting it! Pete lcSQL Software On Wed, Jan 2, 2013 at 8:33 PM, Phil Davis wrote: > ("file:" & pFilePath) _

Re: Problems with arrayencode/decode

2013-01-02 Thread Peter Haworth
Thanks Phil, I'll give that a try. I was using both base64 and array encodings but I was stacking them together, like: base64Encode(arrayEncode(tArray)) Seems like that should work but maybe its troublesome. Pete lcSQL Software On Wed, Jan 2, 2013 at 8:33 PM, Phil Davis

Re: Problems with arrayencode/decode

2013-01-02 Thread Phil Davis
Hi Pete, Here's what I do on a regular basis (with names changed to protect the innocent - Sgt. Friday would be pleased). I use "get url" instead of open/read/close" but it seems to me either should work. I don't know if the 'waits' in my code make much difference: put arrayFromFile(tMyFile

Problems with arrayencode/decode

2013-01-02 Thread Peter Haworth
I'm writing an arrayencoded array to a disk file using write to file. When I read the file back into memory with read from file until EOF and then try to arraydecode it, I get a runtime error "arraydecode:failue". In debug, I can see data appear in it right after the read. I've tried all possibl