Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Invalid length for a Base-64 string. ??? Any ideas?

Reply
Thread Tools

Invalid length for a Base-64 string. ??? Any ideas?

 
 
=?Utf-8?B?RGlmZmlkZW50?=
Guest
Posts: n/a
 
      08-24-2005
ErrorMessage:
-------------
Invalid length for a Base-64 string.

ErrorSource:
-------------
mscorlib

ErrorTargetSite:
----------------
Byte[] FromBase64String(System.String)

ErrorTrace:
----------------
at System.Convert.FromBase64String(String s)
at System.Web.UI.LosFormatter.Deserialize(String input)
at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()

= = = == = = = = = == = = == == == == ===== = = = = = = = = = == == = = ==

Hello All,

Can anyone explain me about this error. I do not think that it is with my
application code. I cannot debug this problem.....

Thanks!!!



 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      08-24-2005
base64 string have to be even in length to be valid.

-- bruce (sqlwork.com)


"Diffident" <> wrote in message
news:6086DB4E-08C9-4AAF-B474-...
> ErrorMessage:
> -------------
> Invalid length for a Base-64 string.
>
> ErrorSource:
> -------------
> mscorlib
>
> ErrorTargetSite:
> ----------------
> Byte[] FromBase64String(System.String)
>
> ErrorTrace:
> ----------------
> at System.Convert.FromBase64String(String s)
> at System.Web.UI.LosFormatter.Deserialize(String input)
> at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
>
> = = = == = = = = = == = = == == == == ===== = = = = = = = = = == == = =
> ==
>
> Hello All,
>
> Can anyone explain me about this error. I do not think that it is with my
> application code. I cannot debug this problem.....
>
> Thanks!!!
>
>
>



 
Reply With Quote
 
=?Utf-8?B?RGlmZmlkZW50?=
Guest
Posts: n/a
 
      08-24-2005
Hi Bruce,

Thanks for the reply. But how can I get rid of this problem?

Thanks!!!

"Bruce Barker" wrote:

> base64 string have to be even in length to be valid.
>
> -- bruce (sqlwork.com)
>
>
> "Diffident" <> wrote in message
> news:6086DB4E-08C9-4AAF-B474-...
> > ErrorMessage:
> > -------------
> > Invalid length for a Base-64 string.
> >
> > ErrorSource:
> > -------------
> > mscorlib
> >
> > ErrorTargetSite:
> > ----------------
> > Byte[] FromBase64String(System.String)
> >
> > ErrorTrace:
> > ----------------
> > at System.Convert.FromBase64String(String s)
> > at System.Web.UI.LosFormatter.Deserialize(String input)
> > at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
> >
> > = = = == = = = = = == = = == == == == ===== = = = = = = = = = == == = =
> > ==
> >
> > Hello All,
> >
> > Can anyone explain me about this error. I do not think that it is with my
> > application code. I cannot debug this problem.....
> >
> > Thanks!!!
> >
> >
> >

>
>
>

 
Reply With Quote
 
Bruce Barker
Guest
Posts: n/a
 
      08-25-2005
with base64, every three bytes (24 bits) of data is converted to four bytes
of printable data (6 bit). when you convert base64 back, you read 4 bytes at
a time and convert back to 3 bytes. you get this error when you don't have a
mulitple of 4. most likely the data is bad, you can append 1 to 3 '='s
to get the correct length (these convert to nulls). you should figure out
why your base64 string are actually invalid.


-- bruce (sqlwork.com)




"Diffident" <> wrote in message
news:AFB1609D-DB86-4D55-AAFC-...
> Hi Bruce,
>
> Thanks for the reply. But how can I get rid of this problem?
>
> Thanks!!!
>
> "Bruce Barker" wrote:
>
>> base64 string have to be even in length to be valid.
>>
>> -- bruce (sqlwork.com)
>>
>>
>> "Diffident" <> wrote in message
>> news:6086DB4E-08C9-4AAF-B474-...
>> > ErrorMessage:
>> > -------------
>> > Invalid length for a Base-64 string.
>> >
>> > ErrorSource:
>> > -------------
>> > mscorlib
>> >
>> > ErrorTargetSite:
>> > ----------------
>> > Byte[] FromBase64String(System.String)
>> >
>> > ErrorTrace:
>> > ----------------
>> > at System.Convert.FromBase64String(String s)
>> > at System.Web.UI.LosFormatter.Deserialize(String input)
>> > at System.Web.UI.Page.LoadPageStateFromPersistenceMed ium()
>> >
>> > = = = == = = = = = == = = == == == == ===== = = = = = = = = = == ==
>> > = =
>> > ==
>> >
>> > Hello All,
>> >
>> > Can anyone explain me about this error. I do not think that it is with
>> > my
>> > application code. I cannot debug this problem.....
>> >
>> > Thanks!!!
>> >
>> >
>> >

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid length for a Base-64 char array =?Utf-8?B?ZGFuYw==?= ASP .Net 6 12-19-2008 11:14 AM
Invalid length for a Base-64 char array Wayne Sepega ASP .Net 2 02-20-2007 11:05 AM
Invalid length for a Base-64 char array Wayne Sepega ASP .Net 2 02-19-2007 05:46 PM
need help Invalid length for a Base-64 char array rrwestva Hardware 0 07-04-2006 08:36 PM
Invalid length for a Base-64 char array ,Invalid_Viewstate =?Utf-8?B?c29tZSBvbmU=?= ASP .Net 3 12-15-2005 03:17 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57