paperjam General User


Joined: 10 May 2005 Posts: 24
|
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:
| Code: | Dim oFileAccess, oFile
Dim aData() as Variant
oFileAccess = createUnoService("com.sun.star.ucb.SimpleFileAccess")
oFile = oFileAccess.openFileRead("http://localhost/")
oFile.readBytes(aData(), oFile.length()) |
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...
Thanks,
Paperjam |
|