


30 Identifier for version, current version is (ASCII) zero "0".01 Information Element Data (sequence number of current short message).


#JAVA CODE TO SEND SMS FROM PC TO MOBILE USING HTTPS HOW TO#
The following example shows how to encode a picture SMS. So the same method will be used for the picture SMS. Detailsįirst of all, convert your image into OTA format and copy all its data in any file like *.txt, *.doc, etc. Read this article for how to convert an image into OTA format. Over the Air (OTA) is an image format for mobile phones which has standard size of 72x28, etc. To understand this article, you must have knowledge of how to send text SMS. I am using OTA format for sending pictures to my mobile phone Sony Ericsson k500i. You can fit your text into one message like if you just send "hello", but it's difficult to fit a picture in one message because you have a complete format for the picture. Text and picture messages have the same method for sending, but the only difference is the length of the message. This article is a sample example for you in order to send a picture to your mobile. If (portId.getPortType() = CommPortIdentifier.Some days ago, I was wondering whether I could send a picture from my PC to mobile? After a lot of thinking, I came to know that I could do so. PortId = (CommPortIdentifier) portList.nextElement() PortList = CommPortIdentifier.getPortIdentifiers() ** Creates a new instance of GSMConnect */ Private OutputStream outputStream = null Private CommPortIdentifier portId = null Private static String comPort = "COM6" // This COM Port must be connect with GSM Modem or your mobile phone Public class GSMConnect implements SerialPortEventListener, Next You Need A GSM Modem (preferably sim900 Module ) This Article Describes In Detail How to Set Up Communication Api You Can Do this With A GSM Modem and Java Communications Api
