473,320 Members | 1,694 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,320 software developers and data experts.

convert file .dat to image

Hi everyone, i have extacted a ".dat" file from a device and i want to read it. As you can see, i can't even guess the real nature of this file(txt,image...)!!! But i hope to extract image from it.
So pleaaaase can anyone help me because i'm really stuck in my project. Thanks
Mar 18 '11 #1
5 3510
Banfa
9,065 Expert Mod 8TB
If you don't know the nature of the file how do you know it contains an image?
Mar 18 '11 #2
Because, I have done my researches and there is a high % that this file contains images but may be it contains texte also. That's what i'm asking,is there a possibility to know what's behind this file!!!
Mar 19 '11 #3
Banfa
9,065 Expert Mod 8TB
Read up on your image specs, most image formats contain identifying information at the start of a file so all you need to do is look for that.
Mar 21 '11 #4
No,the problem is with the .dat file, when i open it i see only numbers in hexa and that doesn't help at all!!
Mar 21 '11 #5
hype261
207 100+
Like Banfa mentioned image files usually contain header information that tells you what type of image format it is. Windows bitmap, for example, the first two characters are BM which in hex is 42 4D. This tells any image program that it is a Windows Bitmap. If the information in the dat file is in hex then get a hex converter. If you are using Visual Studio as your IDE then it has a hex converter already built in.
Mar 21 '11 #6

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

Similar topics

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...
1
by: James dean | last post by:
The following code is the current method i have for converting an image to Base64.Is this the most efficient way to convert an image to base64 or are there others. The Image class's Save method is...
2
by: Lucas Cowald | last post by:
Hi, Using ASP and VBScript. How to convert JPEG image into a binary data? Is it possible with a command from ASP / VBScript without having to put it into a database first? I want to take the...
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
2
by: Don | last post by:
Is there any way to convert an Image into a Byte array that does not require saving the image to disk? - Don
3
by: ShihChengYu | last post by:
Dear all: How to convert color image to bi-level image? I have confronted one problem when I build my OCR project. I used an software API function to enhance my project, but the API only...
6
by: vighnesh | last post by:
Hi Folks I am dealing with a project in which I have to convert the image files as PDF files. Can anyone please suggest how can we achieve that. I tried on google for it, but I found some...
8
by: platinumhimani | last post by:
-How to convert any image(8,16,24,32 or 64-bit) to 8-bit grayscale -i have tried to convert a 24-bit image to grayscale using setpixel and getpixel functions, in vb.net but i am unable to save...
5
by: gnkt4ujt2002 | last post by:
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
7
by: sundarannamalai | last post by:
How can we convert an image into binary file in java?
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.