login about faq

I'm trying to use Chilkat C API to handle a MJPEG stream from an web-server (Content-Type: multipart/mixed). The stream of frames is continuous, so doing a CkHttp_SynchronousRequest or CkHttp_QuickGetObj will block forever. Is there a way to register a callback function that would periodically be called when a chunk of data is received from the server so that I can process it?

What I'm really interested in is processing the MJPEG video stream and separating the individual JPEG frames from the video stream as they come along..

Is there any way of doing that?

asked Oct 27 '15 at 12:12

malin's gravatar image


Unfortunately, the Chilkat HTTP API was not designed with this situation in mind, and it's not a good fit for it.


answered Oct 28 '15 at 14:45

chilkat's gravatar image

chilkat ♦♦

edited Oct 28 '15 at 14:45

So my only hope is to use the Chilkat Socket API? Or do you know of any higher level Chilkat API that can help me process HTTP multipart streams?

(Oct 28 '15 at 15:25) malin

This is really really bad.

You should redesign and offer all data in streaming form, including charset conversion etc. I run into this problem when i realized that my application will suck if the user tries to download large files.

Its also no option to download into a file first when you want to do some processing on it, especially on mobile devices with small meory but still large data files.

For version 10 please continue your background thread design and offer streaming.


answered Oct 28 '15 at 22:09

llothar's gravatar image


Interesting every time i criticize the library i get very quickly exact one downvote.

(Nov 11 '15 at 17:46) llothar

I did not downvote you...

(Nov 11 '15 at 17:47) chilkat ♦♦

Hi llothar, I'm not sure there's anything interesting about downvotes except that you can infer that your posts weren't liked for some reason. There's certainly no conspiracy if that's what you are implying. I checked my voting history, and I downvoted you twice because I found your comments to be rude, not because they criticize the library. Your criticisms may be valid, but I believe your delivery in both cases was needlessly confrontational, and I don't think there's a place for that attitude in a community forum.

(Nov 12 '15 at 09:36) jpbro ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Oct 27 '15 at 12:12

Seen: 2,728 times

Last updated: Nov 12 '15 at 09:36

powered by OSQA