I don't understand what did you mean.
Type is for custom types as you need. If you need this two properties of image , it's true.
And you can use this code to convert any file to byte.
B4X:
Sub File2Byte(Dir As String,Filename As String) As Byte()
Dim input As InputStream
Dim output As OutputStream
Dim buff() As Byte
input = File.OpenInput(Dir,Filename)
output.InitializeToBytesArray(100000)
File.Copy2(input,output)
buff = output.ToBytesArray
output.Close
Return buff
End Sub