B4A Tutorial Encrypting information with RandomAccessFile library - Erel    
Sep 18, 2011   
(3 reactions)RandomAccessFile v1.30 introduces two new methods named: WriteEncryptedObject and... - RandomAccessFile
Example of writing an encrypted List to a file:
Sub Activity_Create(FirstTime... #" & i)
Next
'writing the object
Dim raf As RandomAccessFile
raf.Initialize(File...
link: It will be possible to extract the string from the compiled APK. Obfuscation can help (with process global variables): https://www.b4...
link: Still new to b4a.
Looking at the code from above....
raf.WriteEncryptedObject(list1, "some secret password", raf.CurrentPo...
B4A Question Using RandomAccessFiles written by B4J with B4A - GiovanniPolese    
Aug 16, 2024 format and manage them with RandomAccessFile. Excluding the possibility to write them by Windows program... do this conversion. Therefore my idea was to write RandomAccessFiles using B4J on a desktop and...
link: RandomAccessFile can be used in all platforms, however B4XSerializator is built for this and...
link:
Why aren't you using B4XSerializator?
Hi. I used RandomAccessFile, simply because I never...
link: Why aren't you using B4XSerializator?...
B4A Question What is the latest version of RandomAccessFile (RAF) - Robert Valentino    
Apr 1, 2018Trying to locate the latest version of Random Access Files I have version v2.32
If there is a new version where is it. All the links I try are missing
Thanks
BobVal...
link: If my memory serves me correctly, the internal library gets priority over the external library with ...
link: (not sure when) we use to download the files and I had them in my Libraries path pointed to...
B4A Library RandomAccessFile - V1.10 - Read/Write objects - Erel    
Apr 10, 2011This is a beta version of an important new feature.
Two new methods were added to RandomAccessFile: WriteObject and ReadObject.
These methods allow you to write and read objects to files easily..., writing an array to a file:
Dim raf As RandomAccessFile
raf.Initialize(File.DirRootExternal... types) and user defined types.
Combinations of these types are also supported.
Unlike File.ReadMap or ReadList which convert the data to string, here the data type is kept. This means that the file...
B4A Question [RESOLVED] Different results from: string.GetBytes, File.ReadBytes and RandomAccessFile.ReadBytes - RB Smissaert    
Dec 7, 2023Experimenting with reading large files and writing data to SQLite.
With this I noticed... (either in a file or as a string):
Phone¬Email¬Website¬Fax
13043¬FA512¬Pharmacy¬Community...
link: , lLookAtXBytes As Long) As String
Dim i As Long
Dim RAF As RandomAccessFile
Dim...
link:
Have tested your file now and all working perfectly fine.
Finding the right column separator char...
link:
Created test file of first thousand pharmacies, with 36 double-quotes added to each line, to test...
B4A Question Randomaccessfile: Reading unsigned integer - grafsoft    
Jul 31, 2017Hi,
I am reading an int with the readint method of RandomAccessFile. Now I have a negative integer, but what I need is an unsignedd int. I have trie3d to add different powers of 2, but to no avail...
link: Thank you!...
link: Your code is wrong. The return type is Long. You cannot store the possible range of unsigned int val...
link: Still does not work, produces -400818176. I made a little project that does only use this function a...
B4A Question Error "Attempt to write to field" (randomaccessfile.AsyncStreams) - vecino    
Jun 1, 2023.b4a.randomaccessfile.AsyncStreams$AIN.run(AsyncStreams.java:292) at java.lang.Thread.run(Thread.java:1012)"...
link: Make sure that the class isn't initialized inside an activity....
link: Hello, it is declared in a class.
Thank you....
link: Where is AsyncStreams declared? A service, activity, class?...
Other B4j RandomAccessFile AsyncStreams - Addo    
Dec 22, 2022.b4a.randomaccessfile.AsyncStreams$AIN.run(AsyncStreams.java:232)
at java.base/java.lang.Thread.run...
link:
There is an '_error' event raised by both the background input and output streams that should set LastException that should ...
link: There is an '_error' event raised by both the background input and output streams that should set LastException that should l...
B4A Library RandomAccessFile - V1.15 - Android gzip and zlib compressions - Erel    
May 22, 2011   
(2 reactions)This update adds support for gzip and zlib compression. It allows you to wrap an input stream or output stream and then decompress data while reading or compress data while writing.
It also supports in-memory compression and decompression.
A full example is available in the manual: http://www.b4x.com/android/help/randomaccessfile.html#compressedstreams
Installation instructions:
- Unzip the attached file.
- Copy both files to the internal libraries folder: C:\Program Files\Anywhere...
Other Quiz #13 - Find the bug - RandomAccessFile - Erel    
Jun 2, 2014 tool: http://www.b4x.com/android/forum/threads/balconverter-convert-the-layouts-files-to-json-and-vice-versa.41623/
We want to write three objects to a file. However we want to be able to skip to the third object directly. So we write the position of the third object at the beginning of the file, this allows us later to read the position and jump to the third object directly.
Sub WriteToFile (o1 As Object, o2 As Object, o3 As Object)
Dim raf As RandomAccessFile
raf.Initialize(...)
raf...
Page: 1  
2  
3  
4  
5