Invalid character in a Base-64 string.

Discussion in 'ASP .Net' started by =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Aug 23, 2005.

  1. in the aspx application am calling a component (made by me) that convert a
    string to base64 as :
    //In Component Side (Different solution than application)
    return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(sTo));
    //In application side i did this
    string sTo =
    System.Text.Encoding.UTF8.GetString(Convert.FromBase64String(Request.QueryString["To"]));

    but exception occured with following message

    <Msg>Invalid character in a Base-64 string.</Msg>
    <Trace>at System.Convert.FromBase64String(String s) at
    BriefCase.Mail_en.Page_Load(Object sender, EventArgs e) at
    System.Web.UI.Control.OnLoad(EventArgs e) at
    System.Web.UI.Control.LoadRecursive() at
    System.Web.UI.Page.ProcessRequestMain()</Trace>
    =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Aug 23, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?S29rZXRzbyBNYXNoYW8=?=

    Invalid character in a Base-64 string

    =?Utf-8?B?S29rZXRzbyBNYXNoYW8=?=, Sep 30, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    544
    =?Utf-8?B?S29rZXRzbyBNYXNoYW8=?=
    Sep 30, 2005
  2. Jon   Paal
    Replies:
    2
    Views:
    6,274
    Bruce Barker
    Mar 21, 2006
  3. Replies:
    1
    Views:
    19,723
    Alvin Bruney
    May 25, 2006
  4. =?Utf-8?B?SmFtZXM=?=

    Invalid character in a Base-64 string

    =?Utf-8?B?SmFtZXM=?=, Apr 23, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    829
    =?UTF-8?B?R8O2cmFuIEFuZGVyc3Nvbg==?=
    Apr 24, 2007
  5. kevin
    Replies:
    0
    Views:
    959
    kevin
    Jan 16, 2008
Loading...

Share This Page