Send Picture Message From PC To Mobile - Code Project
Send Picture Message From PC To Mobile - Code Project
http://www.codeproject.com/KB/smart/MobileCommunication.aspx
Password
Sign in
J oin
Home
Articles
Quick Answers
Discussions
Learning Zones
Features
Help!
The Lounge
See Also
More like this More by this author
.NET1.0 .NET1.1 .NET2.0 WinXP VS.NET2003 VS2005 C#2.0 .NETCF Dev Intermediate
This article will help you to send a picture + text as SMS from PC to mobile.........using C#
Article Browse Code Stats Revisions (2)
3.33 (21 votes) 78
Sponsored Links
Nexmo Nexmo is a Wholesale Messaging API service that allows developers to... nexmo.com Send email to SMS with Itduzzit SMS to email with Nexmo and Itduzzit www.itduzzit.com
Introduction
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. This article is a sample example for you in order to send a picture to your mobile. Text and picture messages have the same method for sending, but the only difference is the length of the message. 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. I am using OTA format for sending pictures to my mobile phone Sony Ericsson k500i.
Background
To understand this article, you must have knowledge of how to send text SMS.
OTA
Over the Air (OTA) is an image format for mobile phones which has standard size of 72x28, etc. It has only two colors, black and white. Read this article for how to convert an image into OTA format.
1 of 7
06-12-2011 12:03
http://www.codeproject.com/KB/smart/MobileCommunication.aspx
Details
First of all, convert your image into OTA format and copy all its data in any file like *.txt, *.doc, etc. Here is an example for the OTA data of image.
Collapse | Copy Code
66 40 80 80 40 5F 88 80 40 66
66 00 00 00 00 FF 10 10 00 66
66 00 00 00 20 FF 24 14 00 66
66 00 40 00 00 FF 80 40 00 66
66 60 04 00 00 FF 00 00 00 66
66 00 11 62 01 FE 40 1A 55 66
66 E0 04 89 42 A5 FF AA 55 66
66 00 44 C4 80 7F 02 AC 55 66
66 02 01 01 02 FA 01 01 02 66
99 40 40 80 80 40 40 80 80
99 00 00 00 01 0A 41 00 00
99 00 00 00 F0 AA 00 00 00
99 0E FF 00 00 00 01 00 00
99 90 FE 00 00 00 00 00 00
99 03 2F 41 00 00 03 35 00
99 10 8B 41 A2 55 AB 55 00
99 00 12 40 80 00 E0 56 00
99 02 02 01 01 02 02 01 01
80 80 40 40 80 82 44 40 99
00 00 00 00 0F 01 00 01 99
00 00 00 00 FE 50 00 00 99
00 31 00 00 00 04 08 00 99
00 08 00 00 00 40 20 80 99
00 0C 53 01 00 01 0D 6A 99
00 F3 8C 42 A5 5D 55 AA 99
00 B8 AA 80 00 08 58 AB 99
01 01 02 02 01 A1 82 02 99
As we know, when we send text SMS, we encode our text into PDU. So the same method will be used for the picture SMS.
See Also...
How to Create a Nokia OTA Picture Message vb.net AT commands to send SMS Collapse | Copy Code Send and Read SMS through a GSM Modem using AT Commands
2 of 7
06-12-2011 12:03
http://www.codeproject.com/KB/smart/MobileCommunication.aspx
170B0504158A000000030103039999666666666666666666
A Simple Guide To Mobile Phone File Transferring Converting image files to OTA file format (Mobile Picture Message) Library for Decode/Encode SMS PDU Implementing an SMS Quiz Server Using a GSM Modem Enabled Mobile Phone .NET Phone Communication Library Part IV - Receive SMS Using VB.NET to Decode PDU string Create WAP Push SMS Messages Introduction to AT commands and its uses Mobile Birthday Reminder and Automatic SMS Sender Using VB.NET to Encode SMS and EMS PDU lib under STL for SMS How To Send and Receive SMS using GSM Modem
3 of 7
06-12-2011 12:03
http://www.codeproject.com/KB/smart/MobileCommunication.aspx
01 Information Element Data (concatenated short message reference number) 03 Information Element Data (total number of concatenated messages (0-255)) 02 Information Element Data (sequence number of current short message) All the rest is the image data.
0051000C91xxxxxxxxxxxx00F5A7
Explanation
00 always added 5100 not going to explain here 0C length of phone number 91 phone number format (91=international and 81=national) xxxxxxxxxxxx 12 digit phone number (for example my phone number is 23216427434. write it as 292361244743) 00F5 not going to explain here A7 time limit (24 hours in this case) Complete Example
Collapse | Copy Code
SMS # 1:
4 of 7
06-12-2011 12:03
http://www.codeproject.com/KB/smart/MobileCommunication.aspx
0051000C913012467234F400F5A78C0B0504158A000000030103013000000 45465737402010000481C0166666666666666666699999999999999999980 0000000000000001400000006000E00002400000E90031000028000003108 0CF3B801800000400411044401400000FFFE2F8B12024000000000538CAA0 280000000006289C401800000000041414001400000000014280024000200000 SMS # 2: 0051000C913012467234F400F5A78C0B0504158A000000030103020142800 28001F0000000A28001800FFE000000A500015FFFFFFFFFFEA57FFA400AAA 0000005500028201500440015D08A188102800040FF0201404100010003AB E00244000008200D55588280101440001AAAAC01800000000035555601400 10000806AAAAB024000000000555555028000000000000000199999999999999 SMS # 3: 0051000C913012467234F400F5A7170B0504158A0000000301030399996666 66666666666666
Future Work
I am trying to send MMS as well, using C#.
References
Nokia Smart_Messaging_FAQ_v2_0
5 of 7
06-12-2011 12:03
http://www.codeproject.com/KB/smart/MobileCommunication.aspx
History
5th July, 2007: Initial post
License
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)
I did BS in Computer Science from Punjab University,Pakistan. I have developed lot of Softwares and mostly interested in mathematics,image processing,AI,signal processing,mobile technology,database etc. Currently working at Confiz Solutions as Sr.Software Engineer.
Article Top
Sign Up to vote
Poor
Excellent
Vot e
Search Layout
Normal
Per page
10
Updat e
6 of 7
06-12-2011 12:03
http://www.codeproject.com/KB/smart/MobileCommunication.aspx
photo 9848722979 pakistan bj dalpat Hai ra gjhgfjhgjkfj cxccxcx 8270394443 request Last Visit: 19:00 31 Dec '99 General News Last Update: 20:01 5 Dec '11 Suggestion Question Bug
dimpuvara shiva kumar mekala manojaan abhi kus vadu dalpat Suresh.avk.naidu tufan sadhukhan abrarpc4 rupesht7 m shuja
23:56 1 Dec '11 9:06 14 Oct '11 23:23 29 Sep '11 20:56 28 Aug '11 1:55 1 Aug '11 19:00 15 Jul '11 22:30 24 Jun '11 22:31 15 Mar '11 7:51 14 Mar '11 6:33 6 Mar '11 1 2 3 4 5 6 7 8 Next
Answer
Joke
Rant
Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
Permalink | Advertise | Privacy | Mobile W eb01 | 2.5.111203.1 | Last Updated 5 Jul 2007 Layout: fixed | fluid Article Copyright 2007 by Shakeel Mumtaz Everything else Copyright CodeProject, 1999-2011 Terms of Use
7 of 7
06-12-2011 12:03