Tag Archives: array

(C#) Pull Image into Byte Array from a URL

This snippet pulls down an image from a URL into a byte[]. From there you can re-size or save. Don’t forget the necessary try – catch.

Posted in C# | Also tagged , , , , , , , | Leave a comment

Serializing and deserializing JSON with JavaScript

This example is similar to the┬áSerializing and deserializing JSON with PHP example. JavaScript is used instead of PHP.┬áDouglas Crockford’s JSON library has been used for serializing and deserializing JSON in JavaScript.

Posted in JavaScript | Also tagged , , , , , , | Leave a comment

Serializing and deserializing JSON with PHP

JSON (JavaScript Object Notation) is a standard for interchanging data. You might want to use for serializing and deserializing form input. This example uses the built-in functions of PHP5 for serializing and deserializing a multidimensional array.

Posted in PHP | Also tagged , , , , , , , , , , | Leave a comment