Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Save Image of QGraphicview in SqlServer
Forum Updated to NodeBB v4.3 + New Features

Save Image of QGraphicview in SqlServer

Scheduled Pinned Locked Moved Unsolved General and Desktop
sqlserverqt 5.4imagesaving
11 Posts 3 Posters 4.0k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Are using a QGraphicsPixmapItem ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • M4RZB4NiM Offline
      M4RZB4NiM Offline
      M4RZB4Ni
      wrote on last edited by
      #3

      no
      and my field Type in date base in IMAGE

      Thanks
      M4RZB4Ni

      mrjjM 1 Reply Last reply
      0
      • M4RZB4NiM M4RZB4Ni

        no
        and my field Type in date base in IMAGE

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by mrjj
        #4

        @M4RZB4Ni

        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).

        M4RZB4NiM 1 Reply Last reply
        0
        • mrjjM mrjj

          @M4RZB4Ni

          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).

          M4RZB4NiM Offline
          M4RZB4NiM Offline
          M4RZB4Ni
          wrote on last edited by
          #5

          @mrjj
          thanks
          But IMAGE DataType is a New DataType in Sql Server 2014

          Thanks
          M4RZB4Ni

          mrjjM 1 Reply Last reply
          0
          • M4RZB4NiM M4RZB4Ni

            @mrjj
            thanks
            But IMAGE DataType is a New DataType in Sql Server 2014

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by mrjj
            #6

            @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. :)

            M4RZB4NiM 1 Reply Last reply
            0
            • mrjjM mrjj

              @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. :)

              M4RZB4NiM Offline
              M4RZB4NiM Offline
              M4RZB4Ni
              wrote on last edited by
              #7

              @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

              Thanks
              M4RZB4Ni

              mrjjM 1 Reply Last reply
              0
              • M4RZB4NiM M4RZB4Ni

                @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

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @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.

                M4RZB4NiM 1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #9

                  Depending on your other server setup, you might also have to change the credentials.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • mrjjM mrjj

                    @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.

                    M4RZB4NiM Offline
                    M4RZB4NiM Offline
                    M4RZB4Ni
                    wrote on last edited by
                    #10

                    @mrjj
                    no
                    My program on Client Pc
                    and Database on Other Pc(Server)

                    Thanks
                    M4RZB4Ni

                    mrjjM 1 Reply Last reply
                    0
                    • M4RZB4NiM M4RZB4Ni

                      @mrjj
                      no
                      My program on Client Pc
                      and Database on Other Pc(Server)

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #11

                      @M4RZB4Ni
                      yes, the big question is if they are on same lan/network. :)

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved