I have a set of AMFPHP services which receive from a Flex application a bytearray containing an image. So far so good. Now I need to write the bytearray to a blob field in a SQL Server database. I am using the MSSQL library and I cannot change that. How can I do that?