Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transmitting a file by reading bytes
Message
From
24/07/2014 10:05:20
 
 
To
24/07/2014 09:43:38
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01604538
Message ID:
01604579
Views:
34
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform