I have the following function which takes a `tiff` stored as `blob` from an older database and converts it into `jpeg` and then stores it as a `varbinary(max)` in `sql server`.

```
public byte[] ConvertImage(byte[] imageData)
{
    if (imageData == null) return null;
    using (var image = Image.FromStream(new MemoryStream(imageData)))
    {
        using (Bitmap bmp = new Bitmap(image))
        {
            using (MemoryStream outStream = new MemoryStream())
              {
                  bmp.Save(outStream, ImageFormat.Jpeg);
                  return outStream.ToArray();
              }
        }
    }
}

```

For some reason the conversion is resulting in the size of the image being increased by 10 folds or more. Am i doing something incorrectly?

Thanks for any help