Imaging API getting error with 16bit images, are they not supported?

I’ve been experimenting with the imaging API and found that It can only work with 8bit images?

I’m trying to get image date from a 16bit document but I get this error:

Error: Invalid pixel data - 16 bit value is outside the Photoshop range

So I might guess that only 8bit documents / images are supported?

I found that the problem was to trying to put 16bit image data into the HTML Element source so makes sense it is not possible, but I can successfully get the data from the 16bit and 32bit documents which is amazing!!