Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transmitting a file by reading bytes
Message
De
24/07/2014 10:05:20
 
 
À
24/07/2014 09:43:38
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:
01604579
Vues:
35
>>I think so as well
>
>I applied the changes. At the client side, I am converting all the bytes into a Base64. On the server side, I am taking this Base64, converting in into bytes and creating the file with it. I end up with a different file size.


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 ?
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform