Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I store images created by ShotGraph on the fly into MS SQL database without temporary file?

0
Posted

How can I store images created by ShotGraph on the fly into MS SQL database without temporary file?

0

In case if file name is not specified, GifImage, JpegImage, PngImage and other such methods of ShotGraph returns variant variable containing safearray. It is one of standard supported types in COM. ADO can convert this type to any binary MS SQL data type: image, varbinary etc. To make such autoconversion, you can either: – open ADO Recordset object using adLockOptimistic option, assign variable containing safearray to the Value property of recordset field and then call Update method of recordset. or – create a SQL stored procedure having parameter of image type. This is the preferred way.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.