Save Image of QGraphicview in SqlServer
-
wrote on 11 Aug 2016, 18:48 last edited by
Hello,
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? -
Hi,
Are using a QGraphicsPixmapItem ?
-
wrote on 14 Aug 2016, 16:51 last edited by
no
and my field Type in date base in IMAGE -
hi
maybe this is interesting
https://wiki.qt.io/How_to_Store_and_Retrieve_Image_on_SQLite
Its using BLOBS.I dont know what IMAGE does a field type.
If its a MS SQL server, i think you should look into
VarBinary(max). -
hi
maybe this is interesting
https://wiki.qt.io/How_to_Store_and_Retrieve_Image_on_SQLite
Its using BLOBS.I dont know what IMAGE does a field type.
If its a MS SQL server, i think you should look into
VarBinary(max). -
@M4RZB4Ni said:
IMAGE DataType
Ok, i must have misunderstood
https://msdn.microsoft.com/en-us/library/ms187993.aspx
"
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. :)
-
@M4RZB4Ni said:
IMAGE DataType
Ok, i must have misunderstood
https://msdn.microsoft.com/en-us/library/ms187993.aspx
"
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. :)
wrote on 14 Aug 2016, 20:07 last edited by@mrjj
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 -
@mrjj
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@M4RZB4Ni
Hi
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.
-
@M4RZB4Ni
Hi
If client pc (your program) and the the database server is on same local lan then
YES, should not matter in most networks. -
@M4RZB4Ni
yes, the big question is if they are on same lan/network. :)
2/11