Daniel Thorpe wrote:
> I'm trying to store a vector of doubles into a blob field in a mysql
Why? SQL databases already have a structure made for storing lists of
numbers. They're called columns.
A database is not a filesystem, as Microsoft has spent a lot of money
proving. (WinFS) A database is for storing structured data, whereas a
filesystem is made for storing arbitrary data. By dropping an array of
data into a single field as a BLOB, you are stripping that structure
from it. If you don't want the structure, store it in a file, and put a
reference to the filename in the database.
If I have not managed to convince you to rethink your design, search the
list archives for Chris Frey's packarray template. It is not supported,
but it may work for you.