Converting Images to be Stored in JS Database

Here is the code on the server side to convert images into base64 such that you can save them into browser JS database for offline retrieval.

#!/usr/bin/perl
use MIME::Base64 qw(encode_base64);

open (FILE, "z.png");
binmode(FILE);
$photobin = "";
while (read(FILE, $buf, 60*57)) {
  $output = encode_base64($buf);
  $output=~s/\n//g;
  $photobin = $photobin.$output;
}
print $photobin;
close(FILE);

iPhone HTTP Streaming with FFMpeg and an Open Source Segmenter

I found this as a reference when trying to do Open source based FFMPEG HTTP streaming.

Link is here http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/

Code for the segmenter and the PDF of the website attached here as an archive.

iPhone http streaming

Video segmenter

NOTE: To compile ffmpeg successfully, the –arch=x86_64 flag needs to be passed in the configure script.

Download (PDF, Unknown)