473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

convert any image file to hex code

hi frnds
in using vb.net i want to read or convert any image file to HEX code ..actually
i want to send wallpaper to a mobile phone using gateways
Jul 6 '07 #1
5 6027
Plater
7,872 Expert 4TB
What do you mean hex code? Bytes?
Just open the file with File.Open() and read in the bytes to an array or something then you can send them out.
Jul 6 '07 #2
What do you mean hex code? Bytes?
Just open the file with File.Open() and read in the bytes to an array or something then you can send them out.

i hav to send it on mobile and a moblie phone want it in hex code ,,,,
i use streamreader to read that image file but it read in unknown format ..thats why i got a problem
Jul 9 '07 #3
Plater
7,872 Expert 4TB
"hex code" isn't really code. Hexadecimal is a number system with base 16. (As opposed to standard decimal which is base 10)

Is the image you are trying to send mobile-friendly? Back in the day phones only took .wbmp but I imagine they can handle more.

Everything going to a cell phone generally has to be compressed (if it's going directly, if you go through a proxy'd gateway it will probably do the compression for you)
Jul 9 '07 #4
"hex code" isn't really code. Hexadecimal is a number system with base 16. (As opposed to standard decimal which is base 10)

Is the image you are trying to send mobile-friendly? Back in the day phones only took .wbmp but I imagine they can handle more.

Everything going to a cell phone generally has to be compressed (if it's going directly, if you go through a proxy'd gateway it will probably do the compression for you)
thnks 4 reply
but it is not a solution i use clickatell gateway to send wallpaper ,,and u can'nt send the the path of u r wallpaper to that gate way,,so u hav to convert that wallpaper into hexadecimal string.. that why i want to convert image in to hex string which is also compatible with clickatell
Jul 11 '07 #5
Plater
7,872 Expert 4TB
So you would say have something like:
string mypicstring="0xAA 0xBA 0xDD";
and then you would send that string?

Well if you read in the bytes, then convert them to int8, you cna then use the .ToString("2X") to display them as hex characters
Jul 11 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Nicolas Guilhot | last post by:
Hi all ! I have a multi-page Tiff image file that I want to convert to PDF. To do so I am using iText library. The conversion is working, but the code execution is very different according to...
1
by: mevar81 | last post by:
Hello to everybody.I have a problem.I used a TypeDescriptor to retrieve a TypeConverter to convert an Image to a string.The problem is that it converts the image to the string...
4
by: dale zhang | last post by:
Hi, I am trying to save and read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp Right now, I saved images without any...
3
by: Ignacio Marcos | last post by:
Hi all. I need to convert files on my server from gif to jpg format. I tried with the thumb function, but it does not work (on the line thumb.Save(Response.OutputStream,...
1
by: Daniel | last post by:
I have looked everywhere on the web for an answer to this and the only thing I can find is converting the image format when the file is present on the local filesystem. What I want to do is use a...
7
by: Scott Schluer | last post by:
Is there a way to use the Image class to convert a color photo (GIF or JPEG) to a B&W photo? Thanks, Scott
5
by: Socrates | last post by:
I am interested in developing an online utility that will enable users to copy and past any image (or upload any image on the internet) to the online utility, which will then convert the image to...
6
by: PenguinPig | last post by:
Dear All Experts I would like to know how to convert a HTML into Image using C#. Or allow me contains HTML code (parsed) in Image? I also tried this way but it just display the character "<" &...
5
by: stef | last post by:
hello I can find all kind of procedures to convert an array to a bitmap (wxPython, PIL), but I can't find the reverse, either - convert a bitmap to an array or - read a bitmap file to an...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.