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 8268333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:51:08+00:00 2026-06-08T05:51:08+00:00

I normally like to ask much more precise questions but in this one I

  • 0

I normally like to ask much more precise questions but in this one I haven’t found any good place to get started.

Writing in C#, I am trying to add a large custom text chunk to an image and save this using either JPEG or PNG. I have found plenty of examples on using the Comments or UserComments tag and they work when the text is relatively short. In my case I need to add potentially large chunks of text, let’s say up to 256K. I have found references to “custom chunks” but I can’t find any good pointers on how to write and read them from C# without having to write a complete custom JPG or PNG encoder.

  • 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-08T05:51:09+00:00Added an answer on June 8, 2026 at 5:51 am

    I’m not sure about JPG, but PNGs have a chunked format and as such it should be easy to add a custom chunk to a file that (well-written) existing decoders will ignore. This chunk can contain whatever data you want to put in it.

    You also don’t need to write a full PNG decoder, simply look for you custom chunk and read/write it.

    Edit: JPEGs use segments (see page 2) to separate pieces of files. From my research, I didn’t see any way to add a custom segment – but it is possible to use segment ids that are unused (that will be skipped by decoders) like JPG0, JPG13, DHP, EXP or something else. You can even split up the data across multiple blocks to increase the storage space (as pointed out by @BitBank).

    Hope this helps!

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

Sidebar

Related Questions

This may not be possible, but I'd like to ask anyway and see if
I'd like to ask if any one knows of any issues (performance or otherwise)
Normally we have to do like this to invoke a function from a function
I normally save new data to the database like this: $this->MyTable->set(array( 'id' => $id,
Normally the XML files I have to parse are like this: <row id=1> <title>widget<title>
So normally, I do it like this: $('#selectRoom a').click( function(e) { e.preventDefault(); // To
Normally I would just use URL GET parameters but CodeIgniter doesn't seem to like
Normally, we get first value that way: $(#color option:first).val() But I need something like
I'm going to ask how it's done in c++, but this idea can apply
Alright here it goes. Normally I'm doing alright in HTML, but for this specific

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.