How to do transmission of jpeg file using bluetooth or wifi hotspot to another computer which also have an matlab software?

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

 Risposta accettata

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

thanks for your response. Can transmission done through wifi. Again thanks this works correctly with bluetooth transmission process.
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.
In the case of wifi that is likely to be tcpip() from the Instrument Control toolbox, or you can find a File Exchange contribution for tcpudpip

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by