READ AND COPY .BMP FILE

15 views
Skip to first unread message

Richard Kann

unread,
Nov 19, 2008, 3:40:50 PM11/19/08
to Daniel Klein, jB...@googlegroups.com
Hi,

I am on Jbase 3.4.10 <windows>. I am trying to use jbase to read a .BMP
file and then write it out as another name. The problem is both the READ
and OSREAD commands seem to alter the file so it is garbage once it
writes out again. I have also found that with JPEG files. Is there a set
of commands to read and write a windows file without the system altering
those files?

Bottom line I am trying to copy and rename a file in windows via jbase.

Richard Kann
Comp-Ware Systems

Jim Idle

unread,
Nov 19, 2008, 4:16:14 PM11/19/08
to jB...@googlegroups.com
See documentation for the IOCTL function, which will show you how to change a file descriptor into binary mode.

Jim
Richard Kann
Comp-Ware Systems



alan....@verizon.net

unread,
Nov 19, 2008, 4:14:55 PM11/19/08
to jB...@googlegroups.com
Couldn't you just execute the windows copy command?

Original Message:
-----------------
From: Richard Kann h...@comp-ware.net
Date: Wed, 19 Nov 2008 15:40:50 -0500
To: dan...@jbase.com, jB...@googlegroups.com
Subject: READ AND COPY .BMP FILE



Hi,

I am on Jbase 3.4.10 <windows>. I am trying to use jbase to read a .BMP
file and then write it out as another name. The problem is both the READ
and OSREAD commands seem to alter the file so it is garbage once it
writes out again. I have also found that with JPEG files. Is there a set
of commands to read and write a windows file without the system altering
those files?

Bottom line I am trying to copy and rename a file in windows via jbase.

Richard Kann
Comp-Ware Systems



--------------------------------------------------------------------
mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint


x

unread,
Nov 19, 2008, 4:18:13 PM11/19/08
to jBASE
OPEN FNAME TO FILE ELSE THEN
IF IOCTL(FILE,JIOCTL_COMMAND_CONVERT,'RB,WB') THEN
READ REC FROM FILE, ID ...

Gary Calvin

unread,
Nov 19, 2008, 4:50:39 PM11/19/08
to jB...@googlegroups.com
Out of curiosity, what's wrong with "EXECUTE CHAR(255):'s':'COPY ...'"?

-Gary-

Richard Kann

unread,
Nov 19, 2008, 6:23:32 PM11/19/08
to jB...@googlegroups.com
Yes I could. Just figured that out before your email.

Bruce Willmore

unread,
Nov 19, 2008, 5:57:17 PM11/19/08
to jB...@googlegroups.com
Not at all efficient if dealing with large numbers of binary files.
Reply all
Reply to author
Forward
0 new messages