Joined: 10 May 2005
|Posted: Thu Mar 23, 2006 6:47 am Post subject: Read data from a remote file
|I am trying to read data from a remote file into a string. I succeed in downloading the data into a byte array with this code:
|Dim oFileAccess, oFile
Dim aData() as Variant
oFileAccess = createUnoService("com.sun.star.ucb.SimpleFileAccess")
oFile = oFileAccess.openFileRead("http://localhost/")
My problem is that I do not know how to convert the byte array to a string. I would be glad if somebody could help...