Hi Juan Pablo,
> double[] array = (double[]) rs1.getArray("histograma").getArray();
> java.lang.ClassCastException: [Ljava.lang.Double; cannot be cast to [D
The error message already tells you the solution: use Double, not double.
Like this:
Double[] array = (Double[]) rs1.getArray("histograma").getArray();
Best regards,
-hannes