Save Image of QGraphicview in SqlServer
i Have a QgraphicView
and with scene i set a image in this
and with brush image will edit
now i want to
Save and Retrieve Edited Image in SqlServer Database with "Image" Field
How i can do this?
Are using a QGraphicsPixmapItem ?
and my field Type in date base in IMAGE
maybe this is interesting
Its using BLOBS.
I dont know what IMAGE does a field type.
If its a MS SQL server, i think you should look into
But IMAGE DataType is a New DataType in Sql Server 2014
Ok, i must have misunderstood
IMPORTANT! ntext, text, and image data types will be removed in a future version of SQL Server. Avoid using these data types in new development work, and plan to modify applications that currently use them. Use nvarchar(max), varchar(max), and varbinary(max) instead."
Regardless, its still just a BLOB and the example should work also. :)
Thank You So Much
i have one Other Question
if i have to Select or Insert on a Sql Server Database
and this Database Placed on Other Computer on Network(server)
if i just change the Server Name in my Connection enough?
Thanks so much again
If client pc (your program) and the the database server is on same local lan then
YES, should not matter in most networks.
Depending on your other server setup, you might also have to change the credentials.
My program on Client Pc
and Database on Other Pc(Server)
yes, the big question is if they are on same lan/network. :)