title: Resize image which is placed in byte[] array
body: <p>Size image placed in byte[] array (don't know the type of image).
  I have to produce another byte [] array, which size should be up to 50kB.
  How can I do some kind of scaling?</p>