How to do transmission of jpeg file using bluetooth or wifi hotspot to another computer which also have an matlab software?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Parvinder Singh
il 5 Nov 2017
Commentato: Walter Roberson
il 5 Nov 2017
I am working on project in which we have to transmit an file through wireless communication either via bluetooth or by an wifi direct. Please help me to overcome from this problem
0 Commenti
Risposta accettata
Walter Roberson
il 5 Nov 2017
fid = fopen('NameOfImageFile.jpg', 'r'); %not 'rt' !
bytes = fread(fid, [1 inf], '*uint8');
fclose(fid)
Now bytes is a uint8 vector that can be transmitted.
On the destination end, read the bytes and write them to a file.
2 Commenti
Walter Roberson
il 5 Nov 2017
wifi and bluetooth do not care what the source was of the data that is being sent through them. Just use the appropriate calls to configure and send the data.
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!