julytoccr
Jan 7th, 2002, 03:01 PM
I need to transmit a .jpg file via a serial link at 9600 bps
i use this code to transmit it
.....................
While ((tamanio_buffer_transmisor <= 511) And (byteleido < tamaniofoto))
byteleido = byteleido + 1
Get #1, byteleido, FileData
ByteArray(tamanio_buffer_transmisor) = FileData
tamanio_buffer_transmisor = tamanio_buffer_transmisor + 1
Wend
texto_transmitir = ByteArray
puertoserial.Output = texto_transmitir
.....
How can i do for .jpg files ?
This work fine for text file , but when i try a jpg file i dont recieve all bytes , you know why ? i mean , i recieve the data and when i try to save it to a file , the resultant file miss some bytes from the original files . the InputMode on reciever are binary or text ?
it is a reciever or transmisor problem ?
Thank u in advance
Julian
i use this code to transmit it
.....................
While ((tamanio_buffer_transmisor <= 511) And (byteleido < tamaniofoto))
byteleido = byteleido + 1
Get #1, byteleido, FileData
ByteArray(tamanio_buffer_transmisor) = FileData
tamanio_buffer_transmisor = tamanio_buffer_transmisor + 1
Wend
texto_transmitir = ByteArray
puertoserial.Output = texto_transmitir
.....
How can i do for .jpg files ?
This work fine for text file , but when i try a jpg file i dont recieve all bytes , you know why ? i mean , i recieve the data and when i try to save it to a file , the resultant file miss some bytes from the original files . the InputMode on reciever are binary or text ?
it is a reciever or transmisor problem ?
Thank u in advance
Julian