Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

ComPort and file

  Asked By: Violet    Date: Jul 31    Category: Java    Views: 537
  

I used javax.comm package to write to and read from
Com Ports.

how can I send a file through the Com Port ??

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Johnathan Nelson     Answered On: Jul 31

Only way i can think of is to read  it byte for byte and then write
it. Or line for line, but i haven't really tried that.

 
Answer #2    Answered By: Horia Ahmed     Answered On: Jul 31

javax.comm API use Java stream style when write  to and read  from serial
port. Off course, you can get input stream of file  to be sent, then write
it to output stream of serial port  connection.

 
Answer #3    Answered By: Sophie Williamson     Answered On: Jul 31

I can send  a file  through the COM Port...
but i have another question !
how could I control the flow of data
I sent a file but i lost some of the data !

 
Answer #4    Answered By: Hattie Howard     Answered On: Jul 31

I am new to this solution, like very interesting...

just curious how u determine the connection to the serial port...for example
how do sent the file  to serial port  that is connected to a PDA cradle?

No experience in this...Just curious...

 
Didn't find what you were looking for? Find more on ComPort and file Or get search suggestion and latest updates.




Tagged: