Results 1 to 5 of 5

Thread: Base64 vs Binay File format

  1. #1
    Join Date
    Jun 2007
    Location
    italy
    Posts
    126
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Base64 vs Binay File format

    Hi All,

    Does some easy way exist to check if a file is in base64 or binary format?

    Thank you very mutch,

    Roby

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Base64 vs Binay File format

    Base64 contains only printable characters (32-127 ascii).

  3. #3
    Join Date
    Jun 2007
    Location
    italy
    Posts
    126
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Base64 vs Binay File format

    This mean I should read the file and check for characters outside (32-127 ascii) ..

    ??

    Thank you

  4. #4
    Join Date
    Jun 2007
    Location
    italy
    Posts
    126
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: Base64 vs Binay File format

    anyway guys,

    is it correct to say that ..

    to see if a file is a binary one we just need to look for "\x00", because it would inevitable have it ??

    Thank you for yor kin reply...

    Roby

  5. #5
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Base64 vs Binay File format

    is it correct to say that ..

    to see if a file is a binary one we just need to look for "\x00",
    May it wud be correct to say that -- it is not a base64 file. However you may not confirm if its a binary file. Different files have different signatures.
    What do u want to achieve ?

  6. The following user says thank you to aamer4yu for this useful post:

    rmagro (6th February 2009)

Similar Threads

  1. QImage, get file format
    By greenvirag in forum Qt Programming
    Replies: 6
    Last Post: 29th December 2008, 13:13
  2. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  3. Some very weird compilation warnings
    By MarkoSan in forum Qt Programming
    Replies: 21
    Last Post: 23rd January 2008, 16:48
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. Replies: 13
    Last Post: 1st June 2006, 14:01

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.