'Doesn't work' is inaccurate and vacuous - sorry - I was walking out the door when I typed that...

There are two parts to this issue.

1) Read the file in and store it in a database - per my example

2) The second part is to 're-constitute' the file from a (a database) string back to a binary file.

The whole procedure works fine under r1, but we end up with a corrupted file with r2 - nothing in the app was changed.

I will do more testing do see if it is on the 'read in' part or the 'write out' part.

- Jay


On Apr 11, 2006, at 11:50 AM, Joe Huber wrote:

What about it doesn't work???

Regards,
Joe Huber


Is anyone else having an issue with binary streams from 2006r1 to 2006r2?

We have a method that converts a document into a string - works file in 2006r1, doesn't work in 2006r2



Function gFileToString( theFolderItem as FolderItem)  As String
  dim bs as BinaryStream
  dim docContent as String

  'called to convert a file to a string for storage in the database.

  if theFolderItem <> nil and theFolderItem.Exists then

bs = theFolderItem.OpenAsBinaryFile( false ) 'open the file as a BinaryStream docContent = bs.Read( bs.Length ) 'read the contents of the file into a string
    bs.close

  end if

  return docContent

End Function



Thoughts would be appreciated.



Jay Wooten, President
Visual Dynamics, Inc.  -  Authorized Apple Specialist
www.visdyninc.com
321-773-7788 w
321-773-9604 f
----------------
Everything is easier on a Mac!
----------------

Mac OS 10.4.5


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to