473,246 Members | 1,536 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,246 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 6010
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: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.