This appears to be .NET framework code.
ByteImage = System.IO.File.ReadAllBytes("C:\my folder\my file")
Since I am not using .NET, is there equivalent code in VBA (Access 2007) that will do the same thing?
This appears to be .NET framework code.
ByteImage = System.IO.File.ReadAllBytes("C:\my folder\my file")
Since I am not using .NET, is there equivalent code in VBA (Access 2007) that will do the same thing?
I am not familiar with .NET. What is that code trying to do? I think you may want to try "Call Shell"
Code:Call Shell("""C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE"" ""C:\my folder\my file""", 1)
The code is supposted to import a file and convert the incoming data to byte (binary).
Might take a look at the Open Statement in Access help, for example
Open "TESTFILE" For Binary Access Read Lock Read As #1
many thanks for the responses!!.....the "Open X for binary access read....." solved the problem!