Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8145585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:42:28+00:00 2026-06-06T13:42:28+00:00

I am using LinkSprite JPEG Color Camera to take picture. I am getting hex

  • 0

I am using LinkSprite JPEG Color Camera to take picture. I am getting hex values of the picture data as string in C Sharp from UART. User manual of the camera explains the data structure of the picture as starting with hex FFD8 ans ends with FFD9. The values I am getting fits this description. When I save this hex values to a file using ByteWriter but output file is invalid and I can not see the picture.How can I convert these values to JPEG file?

I am using HCS12 Microcontroller based DRAGON trainging board. I am getting camera data via UART. And I am using C to write my code on DRAGON board. Here is my code:

http://pastebin.com/dR4BJMBZ

Camera information:
http://www.sparkfun.com/products/10061

User manual:
http://www.linksprite.com/upload/file/1333187137.pdf

My C# code:

http://pastebin.com/WXnTL7jd

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:42:29+00:00Added an answer on June 6, 2026 at 1:42 pm

    Olcay Ertaş ,, you are right it is not raw data

    My friends and I faced the same problem while working with our camera. Like you we extracted the HEX data using the UART, and like you we didn’t see the picture. For us the problem was that using a notepad to save the Hex data will only save it as an ASCII string. (we used notepad to save the raw data)

    Here is how we solve it:

    1. We used the XVI32 hex-editor program (which is free).
    2. Take the hex data and copy it from the FF D8 … till the FF D9.
    3. Use the program to insert the string into a new file.
    4. Save the file as a .jpg file.

    I hope it works for you as it did with us.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using import datetime in python, is it possible to take a formatted time/date string
Using linq2sql I'm trying to take the string in txtOilChange and update the oilChange
Using Java,I have to fetch multiple sets of values from an XML file to
Using the HTML5 File API I can get the Binary String representation of a
Using mercurial, I've run into an odd problem where a line from one committer
Using Android TelephonyManager an application can obtain the state of data activity over the
Using php/html, I want to retrieve email addresses (plus other information) from MySQL and
Using Core Data, I have a fetch request to fetch the minimum of a
(Using MVC 2) From inside my controller action, I need to display the url:
Using Yii, I want to delete all the rows that are not from today.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.