|
-
Jan 7th, 2002, 04:01 PM
#1
Thread Starter
New Member
Binary data via serial link
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|