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>