Results 1 to 5 of 5

Thread: SVG to QByteArray

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Posts
    63
    Thanks
    11
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: SVG to QByteArray

    I am not sure why you would want to Base64 encode an SVG file: it is already text after all.
    Well I have an application where you can load different types of images (svg, pbg and jpg) and I am saving PNG and JPG base64 encoded to an xml document so thought might aswell do that to the SVG images aswell.

    Am I losing something when I do this or?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: SVG to QByteArray

    If you are doing this to store an arbitrary binary blob inside another text format then this is a reasonable way to do it. You should not be losing anything except a little bit of disk space for the large Base64 version.

Similar Threads

  1. Replies: 1
    Last Post: 22nd June 2011, 08:12
  2. XoR on hex/QByteArray
    By meena in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2010, 15:41
  3. Replies: 9
    Last Post: 25th July 2009, 13:27
  4. QByteArray
    By gyre in forum Newbie
    Replies: 4
    Last Post: 9th October 2007, 18:30
  5. QByteArray in Qt3
    By joseph in forum Qt Programming
    Replies: 1
    Last Post: 6th September 2007, 06:16

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.