Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
sir.. if i am asking Absurdity pls forgive me...
i am trying to make an c# window form applicaion. application converts files(mp3,jpg,png..etc..) into its coresponding byte code format and stored in ms Access database and vise versa. i heard that ms Access file is portable. is it posible to convert back in another system using the same app?? i think it can reduse memory a lot... is it possible...??? i need your help to continue... thanks...
Posted
Updated 11-Feb-14 9:42am
v2
Comments
Philippe Mori 11-Feb-14 19:02pm    
Effectively, I think it is mainly absurd to do that...Use the original file. Most format are already compressed so you usually won't be able to gain much space even if you try to compress the files.

1 solution

You can do it...but...it won't save anything useful - it will probably use more disk space rather than save it, and slow down access to the data.
Base64 is not a compression technique, it's a "safe transport" encoding: it converts hex bytes into a character based system, where each 5 bits of the input takes up 8 bits of the output. As a result, the output data is going to be 1/3 bigger than the input...

Access can hold binary data without translation - but even then I wouldn't store large files as it complicates storage and makes the DB a lot harder to back up.

What are you trying to achieve that you think this would be a good and necessary idea?
 
Share this answer
 
Comments
JeseemRazak619 11-Feb-14 15:25pm    
when i try to convert an image file into byte and save it as .txt format... it takes time but the size of file is too small... then i try the same with sql database. it perform good but i dont know what's the size of file and also its not portable na... thats why i am trying to do this with MS Access
OriginalGriff 11-Feb-14 15:49pm    
What on earth makes you think Access is more portable than SQL Server?
I can use SQL Server from my Android tablet, and there is no version of Access that will do that!

Perhaps your code was wrong?
JeseemRazak619 11-Feb-14 15:53pm    
sir i want to transfer the database file using a pen drive or something like that. is it posible with sql
Philippe Mori 11-Feb-14 19:04pm    
Transfer the original files... or maybe put the file into a ZIP. Usually it is more convenient to use original files directly.
JeseemRazak619 12-Feb-14 4:31am    
yes.. i am trying to zip the MS Access file..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900