?
Solved

Image decoding from Camera

Posted on 2016-11-07
3
Medium Priority
?
150 Views
Last Modified: 2016-11-12
Hello there,

I have an IP camera and it is scanning barcodes. The camera generates the img file in .bmp format and a XML file and then saves it to a folder. Now I am trying to capture this data from the TCP packet and trying to decode it, to again generate the image and the XML for my software integration. I have attached the output as zip since it contains around 100 text file which i am capturing but the problem is I do not understand where the image file starts and where it ends. You will need to change the txt back to rar to be able to see the contents. EE does not allow me to upload rar files.

For XML I can check <camera> for start and </camera> for end but for image info I am struggling to get bmp. Can somebody please help me.

regard
Zolf
output.txt
0
Comment
Question by:zolf
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
krakatoa earned 2000 total points
ID: 41876945
I'm not saying I can step in here with a qualified answer, but it seems you might be going 'round in a bit of a circle when you try to re-interpret the image data when you already have it in the .BMP file from the camera. What I am getting at is that the Package javax.imageio can already work with several formats, including that one :


https://docs.oracle.com/javase/7/docs/api/javax/imageio/package-summary.html
0
 

Author Closing Comment

by:zolf
ID: 41884445
thanks
0
 
LVL 17

Expert Comment

by:krakatoa
ID: 41884567
You too.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Progress
Suggested Courses
Course of the Month16 days, 16 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question