SunQuest
           Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 26th, 2001, 09:22 AM
benwhit benwhit is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 14 benwhit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi there,
I'm developing an application to send Nokia Logos to mobile phones and they have to be hexencoded. Can anyone tell me how to go about hexencoding a gif image. i need the image to be in a format which is purely a text. an example of a hexencoded gif is:

47494638396148000E00800000000000FFFFFF2C0000000048000E000002878C0F9167CBEFD093B3DA8B298D8AAB9F8559E2 4DA588A690CAB6EE06C4E7D8BDEF22E7CD47828CDC98A97015A0AF964BC6824AE331425C2D3D4652EFB8DA997EDC0D62DA5B 3275D39D15A9E9029B6BC7F51CC4448B692F0A07E67DE54E5312A273C7A634C65648F885D8311878D817F7C321061949B9E7 57E4563269597359E9090A98F9195000003B

Any help is good.
Cheers.

Reply With Quote
  #2  
Old April 26th, 2001, 10:03 AM
epl epl is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Dublin
Posts: 413 epl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 18 m 18 sec
Reputation Power: 8
I don't understand your query..
will you store the images in their encoded format?
will you encode them on request?
do you know how hexcode works - is that what you need help with?
is it one / two bytes at a time?

Reply With Quote
  #3  
Old April 26th, 2001, 11:10 AM
benwhit benwhit is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 14 benwhit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hex/gif

I want the images as a hex code so that i can send them to mobile phones through an sms gateway. I will simply be storing them as a string in a database.

What i need to know is how to get this hex code from a gif image. Maybe there is a tool that can do this or something?

hope this helps, if not ask me again.
Thanks for your time.
Ben.

Reply With Quote
  #4  
Old April 26th, 2001, 01:46 PM
epl epl is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Dublin
Posts: 413 epl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 18 m 18 sec
Reputation Power: 8
it's a picture of a train!!!

I can help you with this if you tell me what you have available to you to do the encoding. Unless you want to send me the stuff and I'll encode it for you.

Do you have MS Access - can get it to read gifs straight to table (encoding along the way). Otherwise, can use excel 97 / word 97 / office 97 / windows with scripting...

Let me know and I'll help you get this done, Ed.

Reply With Quote
  #5  
Old April 27th, 2001, 02:47 AM
benwhit benwhit is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 14 benwhit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile encoding gifs

Thanks for replying.

I have office 2000 so i can use any of those that you mentioned. If you can tell me how to do it then great!!

Thanks again.
Ben.

Reply With Quote
  #6  
Old April 27th, 2001, 04:22 AM
epl epl is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Dublin
Posts: 413 epl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 18 m 18 sec
Reputation Power: 8
send me your email address (via private message) and I'll send you the xl97 that I did it in.. the code / method should be pretty clear from there. It's only set up for a single pre-specified file at the moment, but if you need help with that the just say so.

The encoding involves loading the file one byte at a time and converting the byte to a two-digit hex number -
0 becomes "00",
9 becomes "09",
10 becomes "0A",
15 becomes "0F",
255 becomes "FF"

The full coded string is a concatenation of all the 2 digit ones, left to right.

Ed.

(I'll be in work in about an hour!!)

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Gif to hex code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway