Is it possible to have a multi dimensional array of double type, with size
[10][50][120][120] - which holds nearly 10MBits of data ?
Is it possible to transfer this amount to applet, from servlet?
Printable View
Is it possible to have a multi dimensional array of double type, with size
[10][50][120][120] - which holds nearly 10MBits of data ?
Is it possible to transfer this amount to applet, from servlet?
You store 10*50*120*120 * 8 byte = 57.6 MByte of data. This would also be the memory footprint of a one-dimensional array of doubles.
Now multi-dimensional arrays are stored as arrays of arrays so the memory requirement increases somewhat. This is because in addition to the actual doubles also references to arrays are stored internally. You can approximate this as 10*50*120 * 4 byte = 0.24 MByte of references which should be added.
So you have lets say 60 MByte of data. This is nothing for a computer today which usually has several GByte of memory.
60 MByte corresponds roughly to the Java SDK download which usually takes about a minute or two (over my 10 Mbit/s connection). So this amount of data certainly can be transfered but whether the time it takes is feasible depends I guess on how much your users cherish the goodies they're waiting for.