Hi everyone, I don't understand the conversion of file types like pdf, txt or png to send over the network. The code below I think requires file to be converted to byes before sending.
I appreciate it if anyone can share a link ( snippet example)or tips how it can be done.
Thanks for taking the time.
joe
B4X:
Dim out As OutputStream
out.InitializeToBytesArray(0)
cvs.CreateBitmap.WriteToStream(out, 100, "PNG")
out.Close
mm.Image = out.ToBytesArray
SendData (ser.ConvertObjectToBytes(mm))
Thanks for taking the time.
joe