Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transmitting a file by reading bytes
Message
De
24/07/2014 11:21:23
 
 
À
24/07/2014 10:05:20
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01604538
Message ID:
01604585
Vues:
30
>May have to do with the size of the blocks you feed into the encoding (and decoding) parts
>
>Base64 encoding : 3 bytes become 4 bytes (3 * 8 bits >> 4 * 6 bits)
>The block - if not a multiple of 3 bytes is padded with = or == see http://en.wikipedia.org/wiki/Base64
>
>To encode - feed blocks that are multiple of 3 bytes ( except the last block)
>
>
>What is the code to Encode and Decode ?

As this is Base64 encoded, I do not use to deal directly with bytes. So, basically, my initial approach was ok.

However, if I send 200,000 bytes at a time, this will not generate an error on the ConvertFromBase64() method I have. If I send 200,001 bytes at a time, for a divider by 3, this gives "Invalid length for a Base-64 char array.".
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform