hello,
the imgFlashCode.Background came from httpUtils2 (Download)
i need the outpustream for an insert into a sql lite database (BLOB)
the error is :
javac 1.6.0_26
addclient.java:318: inconvertible types
found : android.graphics.drawable.Drawable
required: java.io.InputStream
_inputstream1.setObject((java.io.InputStream)(mostCurrent._imgflashcode.getBackground()));
Thx for help
B4X:
Dim InputStream1 As InputStream
InputStream1 = imgFlashCode.Background
Dim OutputStream1 As OutputStream
OutputStream1.InitializeToBytesArray (1000)
File.Copy2(InputStream1, OutputStream1)
Dim Buffer() As Byte 'declares an empty array
Buffer = OutputStream1.ToBytesArray
the imgFlashCode.Background came from httpUtils2 (Download)
B4X:
Select Job.JobName
Case "Job1"
'show the downloaded image
imgFlashCode.SetBackgroundImage(Job.GetBitmap)
i need the outpustream for an insert into a sql lite database (BLOB)
the error is :
javac 1.6.0_26
addclient.java:318: inconvertible types
found : android.graphics.drawable.Drawable
required: java.io.InputStream
_inputstream1.setObject((java.io.InputStream)(mostCurrent._imgflashcode.getBackground()));
Thx for help