Skip to main content
Email Password   helpLost your password?

Introduction

I searched the internet for a program to convert the image files to the OTA file format, but there was none!!! So, I began researching for OTA file format details... finally, I wrote a program with C# to do this...

The source code and binary files are ready for download...

The main logic of this program is an algorithm for converting images. Mobile picture messages (OTA or OTB files) have a standard size: 72x28. First of all we must create a file (*.ota) and then write 4 standard bytes into it.

byte0 -> 0000 0000 (0)
byte1 -> 0100 1000 (72)
byte2 -> 0001 1100 (28)
byte3 -> 0000 0001 (1)

Now read image, pixel by pixel, from left to right and top to bottom, every 8 pixel makes a byte for writing to the file:

black pixels = 0
Other pixels = 1

An image with size 72x28:

has 72*28 = 2016 (bits)
every 8 bits = 1 byte => 2016 / 8 = 252
and 252(bytes) + 4(standard bytes) = 256 bytes

Finally, the file size is 256 bytes.

Download and read my source code to see this program working...

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
Generalwant a program in java to convert .jpg image into .ota format Pin
shoaib_bagwan
23:50 8 Sep '09  
Generalhi, Pin
prashant.patel31@gmail.com
3:22 13 Apr '09  
GeneralRe: hi, Pin
musyab
22:10 17 Apr '09  
GeneralHello Sir Pin
oviyaa
19:03 16 Feb '09  
QuestionHow to send pic msgs (.ota) By Nokia E51 ? Pin
undead_fred
3:45 11 Nov '08  
AnswerRe: How to send pic msgs (.ota) By Nokia E51 ? Pin
Alireza Naghizadeh
5:18 11 Nov '08  
GeneralTrouble with creating picture msg with my n70 Pin
Nikhil Dhotre
7:44 15 Jul '08  
GeneralRegarding OTA Pin
Muthuganesh
2:44 12 Jul '08  
GeneralSending OTA file via SMPP protocol to NOKIA SMSC Pin
Iftee
3:51 17 Jan '08  
GeneralAbout OTA file Pin
Ta Hoang Van
15:58 9 Jan '08  
GeneralRe: About OTA file Pin
venki_pandi
23:57 3 Feb '08  
GeneralNeed more idea Pin
tykea_khy
17:38 11 Dec '07  
GeneralSend Picture SMS as 1 SMS ( instead of conventional 3 SMS) Pin
Night Safari
23:33 3 Nov '07  
GeneralRe: Send Picture SMS as 1 SMS ( instead of conventional 3 SMS) Pin
style of worlds
22:12 19 Jan '08  
GeneralFor this .OTAfile i have to instal any software in my mobile? Pin
Narendra Mahalik
2:56 24 Aug '07  
GeneralRe: For this .OTAfile i have to instal any software in my mobile? Pin
Alireza Naghizadeh
5:48 9 Sep '07  
Generalhow to send image ? Pin
Shakeel Mumtaz
19:58 10 Jun '07  
GeneralRe: how to send image ? Pin
adnaneco
20:13 18 Apr '09  
GeneralRe: how to send image ? Pin
Shakeel Mumtaz
20:47 19 Apr '09  
GeneralRe: how to send image ? Pin
adnaneco
3:54 20 Apr '09  
GeneralPicture message Pin
teznin
2:14 5 Jan '07  
AnswerRe: Picture message Pin
Alireza Naghizadeh
19:26 6 Jan '07  
GeneralAbout This Program Pin
pouriia
11:03 28 Mar '06  
GeneralWant Details abt OTA file format Pin
imran_3jan
20:14 15 Mar '06  
GeneralRe: Want Details abt OTA file format [modified] Pin
basudekrishna
20:37 28 May '06  


Last Updated 8 Jul 2005 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009