Read an excel file from encrypted disk partition into R - r

I have created an encrypted disk on my macbookpro. I would like to open an excel file from this drive (I have the password of course) and load it into R. Is this possible? Or do I have to move the file onto, for example, my desktop and then load it into R?
Thank you!

Related

Open a .zip or .7zip file in R without upacking it to the hard drive

I have .zip and .7zip files (.csv) that are encrypted that I want to read in R without unzipping the data. I know I can open such files if they are not encrypted without unzipping them first, R Reading in a zip data file without unzipping it, but in this case the files are encrypted. Do you know how I can decrypt them and load them into R without unzipping them?
It should be said that I only need a solution for one of the file formats if there is only a solution for one of them.

Unreadable .dbf file

I am trying to open a .dbf file. The file is from an application directory. I would just like to access the raw data, but I am having some difficulty.
I am not looking for a how to, but would appreciate someone pointing me to a where to get to my solution. I do not know if this file is encrypted, or if it is from foxpro, or if I am simply not opening the file with the correct application. I feel like this would have been created from something old as far as software.
Included is an image of what the data looks like when I open the file. This is in Visual Studio. I have tried it in other IDEs as well as just plain old excel.
That looks like an unencrypted DBF created by either FoxBase or FoxPro (pre-Visual FoxPro) or dBase III Plus or dBase IV. What happens when you try to open it in Excel?

Is it safe to open a crypted file with a text editor

Say I have files encrypted and I open them with a text editor, am I in risk of those files being copied in some temp memory ?
I noticed this sentence in the introduction on truecrypt website
"Note that TrueCrypt never saves any decrypted data to a disk – it only stores them temporarily in RAM (memory). Even when the volume is mounted, data stored in the volume is still encrypted"
But do I understand it correctly ?
If a file stored in a TrueCrypt volume is opened in a text editor (or any application really), the decrypted file is temporarily stored in RAM. Once in RAM, another application could potentially copy the data if it can locate the files contents in memory. The feasibility of this is highly dependent on the operating system you're using though.
Also, the editor you've opened the decrypted file in may save a copy of it to a non-encrypted disk. Once you've opened a file in an application it can do anything it wants with the data, it doesn't matter where the data originally came from or in what form it was stored.
Last, depending on your operating system, the OS itself may leave traces of encrypted files. For example, Windows keeps a list of recently opened files, and while this doesn't leave decrypted file contents lying around, it does reveal the names of any files from the TrueCrypt volume that were opened.

save the uploaded .doc file to db with html format

In my application,user can upload some doc files to the server,and I want user who do not install ms office can read these documents,so I want to convert the .doc to html and then save the html(binary stream) to oracle db.
I wonder if there is a best pratice to implement this?
Someone tell me to use the com object provoided by the office assembly,it seems that it will transfer the .doc file to a .html file,so I have to save the .html file to db and delete the temp .html file,I want to know if I can save it in db directly?
You might need to give everyone a bit more information...
I assume you're using a server side technology? Which one?
What database are you using?
The chances are if the COM object is writing it to a file, you will - like you say, just need to copy that into the DB, and delete the temp file.
IMHO - There should be nothing wrong with saving to temp file and outputting that to DB (if you could save to memory that would be even better!)

How to update MYSQL Database with data from Excel using ASP.NET?

I have an excel file which gets updated every 10 seconds through an automated process. I need excel data to be updated in MY-SQL database which is located on a remote server.
How do I do that?
I have thought of following option:
1) Every 11 seconds, an Excel macro will run and will "Save as" excel as CSV file. (not sure whether this can be done by macro...just thinking)
2) This CSV file we will FTP to remote server using Windows Service.
3) On remote server, we will parse the csv file and Update MYSQL database.
Is this approach fine? Or do you have a better approach which requires less time to update the database?
Thanks!
I found following links to be more useful:
http://www.heritage-tech.net/908/inserting-data-into-mysql-from-excel-using-vba/
http://vbaexcel.eu/vba-macro-code/update-mysql-database-php
I hope this helps someone having similar problem as mine.
You can connect to the Excel spreadsheet using ODBC connection, read the data, and post it to the MySQL database, maybe through some sort of web service access, or via a saved CSV file?

Resources