I always get the following exception, when I try to downoad and save an encrypted file:
This is my file on the server:
and it seems, that it is not possible to save this file with openoutput:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
This is my file on the server:
B4X:
Dim Kontaktdatei As RandomAccessFile
Kontaktdatei.Initialize(File.DirApp, "EIS/Kontakte/Kontakte.eis", False)
Kontaktdatei.WriteEncryptedObject(Main.Kontakte, Main.CopyrightString, 0)
Kontaktdatei.Close
and it seems, that it is not possible to save this file with openoutput:
B4X:
Sub JobDone (Job As HttpJob)
If Job.Success=True Then
Select Job.JobName
Case "Kontakte"
Dim out As OutputStream
out=File.OpenOutput(File.DirApp, "Kontakte.eis", False)
File.Copy2(Job.GetInputStream, out)
out.Close
....
.....