Hello everybody!
This code works fine for small files:
IfFile.Exists(dirName, fiName) Then
raf.Initialize(dirName, fiName, False)
fileS = File.Size(dirName, fiName)
Dim ooBuffer(fileS)AsByte
raf.ReadBytes(ooBuffer,0,fileS,raf.CurrentPosition)
AStreams.Write(ooBuffer)
End If
I want to transfer a file on my android device to a Windows PC via Socket.
"raf" is defined As RandomAccessFile
For very large files I always get a "Out of Memory" message.
Has anybody an example?
Thx
Harald
This code works fine for small files:
IfFile.Exists(dirName, fiName) Then
raf.Initialize(dirName, fiName, False)
fileS = File.Size(dirName, fiName)
Dim ooBuffer(fileS)AsByte
raf.ReadBytes(ooBuffer,0,fileS,raf.CurrentPosition)
AStreams.Write(ooBuffer)
End If
I want to transfer a file on my android device to a Windows PC via Socket.
"raf" is defined As RandomAccessFile
For very large files I always get a "Out of Memory" message.
Has anybody an example?
Thx
Harald