uncompressing JPEG hex code into 2D array

i want to change this hex into 2D array to be further processed.

A JPEG file is a linear stream - I don't see how you could represent it as a 2D array.