Unzip .mdb file in c#

I can download my .mdb file from server but it can't extract file correctly. There is always an error shown saying that the file was corrupt. I got set password access for my .mdb file
Thanks

Hi,
Can you solve your problem? There is not enough information about your problem. How do you download the mdb file. Please post some codes or share a test project in the forum so that we can test it.
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

Similar Messages

  • How to read .mdb file from shared folder

    Hi All,
    In one of my local computer I have a shared folder and within the folder I have a .mdb file. Now I am trying to read that file from MII. I have tried with Get_File_List action block. I am providing the following information to Get_File_List
    Folder :
    <Computer Name>\<Shared Folder Name>
    Mask: .mdb
    But in return of Get_File_List, I am not getting any file related information. It is only providing like below
    <Rowsets>
    <Rowset>
    <Columns>
    <Column Description="Name" MaxRange="0" MinRange="0" Name="Name" SQLDataType="1" SourceColumn="Name"/>
    <Column Description="Date" MaxRange="0" MinRange="0" Name="Date" SQLDataType="93" SourceColumn="Date"/>
    <Column Description="Size" MaxRange="100" MinRange="0" Name="Size" SQLDataType="4" SourceColumn="Size"/>
    <Column Description="LastWriteDate" MaxRange="0" MinRange="0" Name="LastWriteDate" SQLDataType="93" SourceColumn="LastWriteDate"/>
    <Column Description="ReadOnly" MaxRange="1" MinRange="0" Name="ReadOnly" SQLDataType="4" SourceColumn="ReadOnly"/>
    <Column Description="FullPath" MaxRange="0" MinRange="0" Name="FullPath" SQLDataType="1" SourceColumn="FullPath"/>
    </Columns>
    </Rowset>
    </Rowsets>
    Can anybody suggest me how to achieve it.
    Thanks in advance
    Chandan

    Hi Chandan,
    Specify the mask as *.mdb and try.
    Thanks,
    Dipankar

  • How to read accdb and mdb files using JDBC or File Adapter

    Hi,
    How to read and extract the .accdb and .mdb files  from FTP server and parsing into xml  by using FTP or JDBC Adapter in SAP PI7.11 With linx Os.
    Regards
    Upendra

    Hi,
    As per SAP note:1681420 i have to  install the below  driver from Microsoft
    Our SAP PI installed under Unxi OS ,how to install the driver (.exe file) .
    Driver name :AccessDatabaseEngine_x64.exe
    Url:Download Microsoft Access Database Engine 2010 Redistributable from Official Microsoft Download Center
    1681420 - PI : Where to locate the JDBC Driver for Microsoft Access
    Regards
    Upendra

  • Cannot OpenDatabase (MSAccess mdb file) using VB6 code on windows8 64 bit machine using office 2013.

    I have a "mdb" file which is created long back in MSAccess 97 or 2000. I am using Office 2013.
    When I tried to open the mdb file from my application using below code written in VB6, It works fine in Windows 7 64 bit machine but It is not working in Windows 8 64 bit machine.
    If I use office 2010 again same code works fine in both Windows 7 and 8 64 bit machines.
    Set gWork = DBEngine.CreateWorkspace("", "admin", "", dbUseJet)
    Set gCache = gWork.OpenDatabase(DataPath & fFilePath & "\connec00.mdb")
    I have a referenced "Microsoft DAO 3.51 Object Library" for the code.
    I tried changing it to "Microsoft DAO 3.6 Object Library" also but still the problem is not resolved.
    Can anyone please help me in figuring this out ??

    Dear Bruce,
    Thanks for your reply.
    Code was written in VB6. My VB6 application will try to open a "connec00.mdb" file and will read the data in it for displaying in the application.
    For opening the database by the application the code was written like below
    On Error GoTo Herr
    Set gWork = DBEngine.CreateWorkspace("", "admin", "", dbUseJet)
    FLog.Addlog "File exists: Connecting to database..."
    Set gCache = gWork.OpenDatabase(DataPath & fFilePath & "\connec00.mdb")
    Herr:
    FLog.Addlog "Error(Class_Initialize - DataConnector): " + Err.Description + " in " + Err.Source + Chr(10) + Chr(13) + "Init: Going on execution..."
    If I manually open the "mdb" file both in windows 7 64 bit and windows 8 64 bit using MSAccess 2013, I will get  the error
    "cannot open a database created with previous version of your application".
    On Windows 7 64 bit
    Through my VB6 code the mdb file is opened (does not launch MSAccess) by my application and reading is done perfectly which inturns helps the application to display the data in the mdb file. (even though manually if I cannot open)
    On Windows 8 64 bit
    Through my VB6 code the mdb file is not able to open the database by my application.
    It is going to Herr: part when it tries comes to that "OpenDatabase" step and it prints nothing in the log (Err.Description )also.
    (This is seen only for Windows 8 64 bit) . In Windows 7 64 bit Herr part does not even hit.
    Configuration wise I have checked both are same. Please let me know in case of furthur clarification or anything if I miss..
    Thanks for your co-operation.

  • How to import a table which is in mdb file(same table in different mdb's)

    Hello,
    how to import a table which is in mdb file(same table in different mdb's)
    e.g. table 'EMPLOYEE' is in 'test.mdb' the same table 'EMPLOYEE' is in 'current.mdb'
    How this can be done on click of a button on my form if the path of mdb is provided?
    Thanks

    This question is not related with ora dev forms, its about Microsoft Access.
    Use import option (File >> Get External Data >> Import)
    or use TransferDatabase action.

  • I'm running Firefox 7.0.1 and since the September 30 security update I can no longer unzip zipped files unless I reboot my computer first or run it in Safe Mode. Can anyone help me roll Firefox back to before the update?

    I regularly download zipped files from Survey Monkey. Since the latest security update, the zipped files download to my computer, but when I try and unzip them I get a message telling me the file is in use by another application. If I reboot, I can unzip the file, or if I'm in Safe Mode when I download the file it unzips fine.
    I have tried three different unzip apps and all have the same trouble. Everything was working well after the September 5 update.
    I'm running Windows XP with McAfee antivirus, Spybot, Ad-Aware and Malbytes Anti-malware. All are up to date.

    The URL below is to Adobe's Acrobat update page.
    There you'll find each of the incremental updates to Acrobat 10.
    They must be installed one at a time in sequence. 
      http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Windows
    Now, if after attempted updates fail then you'll need to speak with your IT Department.
    You need your install of Acrobat 10 updated to dot version 10.1.7.
    Be well...
    Message was edited by: CtDave

  • Easy way to unzip zipped files?

    I'm trying to figure out an easy way to unzip zipped files.  I'm using C# in VS 4.5.
    I download this:
    http://dotnetzip.codeplex.com/
    I couldn't get any dlls installed.  I couldn't set any reference to anything.
    I also tried to follow the example here:
    http://www.danderson.me/posts/zipfile-class-system-io-compression-filesystem/
    I can't find anything titled 'System.IO.Compression.dll'.  I set a reference to these two:
    System.IO.Compression.FileSystem
    System.IO.Compression
    That did nothing at all.
    For instance, I think this should work:
    using System;
    using System.IO;
    using System.IO.Compression;
    namespace ConsoleApplication
    class Program
    static void Main(string[] args)
    string startPath = @"c:\example\start";
    string zipPath = @"c:\example\result.zip";
    string extractPath = @"c:\example\extract";
    ZipFile.CreateFromDirectory(startPath, zipPath);
    ZipFile.ExtractToDirectory(zipPath, extractPath);
    However, i keep getting an error message that says 'The name 'ZipFile' does not exist in the current context'.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

    Hi
    Please include the below namespace and try it out.
    System.IO.Compression.FileSystem
    The code would be like this.
    using System;
    using System.IO;
    namespace ConsoleApplication
    class Program
    static void Main(string[] args)
    string startPath = @"c:\example\start";
    string zipPath = @"c:\example\result.zip";
    string extractPath = @"c:\example\extract";
    System.IO.Compression.ZipFile.CreateFromDirectory(startPath, zipPath);
    System.IO.Compression.ZipFile.ExtractToDirectory(zipPath, extractPath);
    Please note that you need to add a DLL reference to the framework assembly
    System.IO.Compression.FileSystem.dll
    Please let me know in case of any questions you may have around this. Thank you. 

  • Any tcode to unzip a file?

    does any body know any transaction code to unzip a file.
    iam already using a fn module SXPG_CALL_SYSTEM which uses a unix command.
    and i know uncompress in open dataset.
    but i need a transaction code but not the abobve two solutions.

    Don't know of a way to create a Keyboard shortcut since the menu item name changes with whatever is selected, but you could make an Automator script and then map that Automator script to a keyboard shortcut. Or just make a Automator Application that sits on your desktop or dock and drag and drop files onto it.

  • Powershell script to search a network drive for .mdb files and export them to CSV file

    Hello all,
    I'm trying to search one of our network drives for old .mdb files, I want to write the name, location and date last modified to a csv file.
    Get-WmiObject -Class CIM_DataFile -Filter "Drive='S:' And Extension='mdb'
     AND ObjFile.drive
     AND objFile.FileName
     AND objFile.FileSize
     AND objFile.LastWriteTime" |
    Export-CSV c:\mdb_search\mdbfiles.csv\
    Obviously this isn't working or I wouldn't be posting.  I've tried many different examples from the net with no joy for now.
    Thanks for any help you can offer.

    Thanks, that did the job.
    Cheers, you're welcome.
    How do I get the powershell cursor to return to C:> ?
    Should I use "exit" or "break" ?
    Neither, the console will return to a prompt when the search has been completed.
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Unzip/ Untar files

    I am remotely logged into a UNIX cluster at the university and attempting to manipulate some files that I have received from a collaborator. He has "tarred" and "zipped" the files. Unzipping the file with the command
    <remote host:directory>% gunzip file.tar.gz
    (remote host is the machine I am logged into (via ssh -X username): directory is my directory on the remote host)
    This creates the unzipped file- file.tar on <remote host:directory>. The problem arises when I attempt to untar the file. I am using the command
    tar -xvfp file.tar
    After entering this command, I get the message
    tar: can't mkdir /net: Permission denied
    tar extract: failed mkdir of <:senders directory>
    The same error is produced using [tar -xvf] as the bundled-options. I am assuming that it is attempting to make the directory on my collaborators remote host because the listed location of the failed mkdir is the senders directory <:senders directory> on a different UNIX cluster.
    I have tried variations on the tar command (-x or -xv) but those produce the error
    tar: tape read error: no tape in drive
    I am a bit unfamiliar with the syntax for the [[-]bundled-options Args] in the tar command, but I suspect that I need to specify where the untarred archive is going to be written/ copied. Could anyone provide some guidance on this.
    Sincerely,
    Aric

    Hi Aric,
       Did you copy the error message verbatim? Does it really want to create the directory, /net? If so then the problem is likely to be in the tarball itself.
       There's nothing wrong with your initial syntax. The -x tells tar to unpack the tarball, which is what you're trying to do. The -p says to preserve permissions, which is fine. The 'p' is not supposed to go after the 'f' in the options because the tarball, file.tar, is technically an argument of the -f option. However, most implementations of tar are rather forgiving in that regard. The -v option simply tells tar to be verbose and list the files. Of course there are many implementations of tar and you don't bother to tell us into what kind of machine you're logged.
       Tar has the ability to archive many files and preserve the directory structure. However, it has to recreate those directories when unpacking and that's when it had a problem. It seems that tar wants to create a directory named "net" at the root of the boot drive. I assume that the creator of the tarball archived such a directory on his machine.
       However, most implementations of tar strip the leading slash, turning an absolute path into a relative path. That way when unpacked, the directory structure starts at the current working directory. Unless you tried to unpack this tarball from the root directory of the boot drive, the tar that created this tarball appears to be different.
       Unless you can get the privilege of writing to the root of this boot drive, I would guess that your only recourse is to get the person who created the tarball to redo it using relative paths. See if you can get him to create it with GNU's tar, as that version strips the leading slashes by default.
    Gary
    ~~~~
       OK, so you're a Ph.D. Just don't touch anything.

  • Problem in unzip a file

    hai,
    Iam trying to unzip a file but its not working.
    //Unzip a file
      final int BUFFER = 2048;
      String zfname=application.getRealPath("/") + "temp/Bulk.zip"; 
           File  zf=new File(zfname);
      try {
             BufferedOutputStream dest = null;
             FileInputStream fis = new FileInputStream(zf);
             ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis));
             ZipEntry entry;
             while((entry = zis.getNextEntry()) != null)
                                       System.out.println("Extracting: " +entry);
                     int count;
                     byte data[] = new byte[BUFFER];
                    // write the files to the disk
                    File outFile=new File(outPath);
                    //FileOutputStream fos = new FileOutputStream(outFile);
                    FileOutputStream fos = new FileOutputStream(entry.getName());
                    dest = new BufferedOutputStream(fos, BUFFER);
                    while ((count = zis.read(data, 0, BUFFER))!= -1)
                        dest.write(data, 0, count);
                    dest.flush();
                    dest.close();
             zis.close();
          } catch(Exception e) {
             e.printStackTrace();
    Bulk.zip folder has the following files:
    Bulk/test.txt
    Bulk/fm.jsp
    I get the following exception
    java.io.FileNotFoundException: Bulk\test.txt
    (The system cannot find the path specified)
    Iam i making mistake in this line
    FileOutputStream fos = new FileOutputStream(entry.getName());
                    dest = new BufferedOutputStream(fos, BUFFER);Thanks,
    Thanuja.

    ok vijay iam so sorry for not mentioning how i rectified it. somehow i missed it. may be was bit excited when i got the result.
    anyways below code worked.
    //Unzip a file
        String zip_fname=request.getParameter("zfilename")!=null?request.getParameter("zfilename"):"";
        String fromZip=zip_fname;
        //out.println("FromZip:"+fromZip);
        File zipFname=new File(newFileName);
        String toLocation=newFilePath; //path to unzip the file
        String seperator = System.getProperty("file.separator");
        System.out.println("unzipping zip file to "+toLocation);
        try
            BufferedOutputStream dest = null;
            File zipDir = new File(toLocation);
             zipDir.mkdir();
            ZipFile zip = new ZipFile(fromZip);
            final int BUFFER = 2048;
            FileInputStream fin=new FileInputStream(fromZip);
            ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fin));
            ZipEntry entry;
            while((entry = zis.getNextEntry()) != null)
                     //System.out.println("Extracting: " +entry);
                     int count;
                     byte data[] = new byte[BUFFER];
                     String zip_Fname=entry.getName().substring(entry.getName().lastIndexOf("/")+1);
                        if(!zip_Fname.equals(""))
                            zipFiles.add(zip_Fname);
                  if(!zip_Fname.equals(""))  
                     FileOutputStream fos = new FileOutputStream(toLocation + seperator + entry.getName().substring(entry.getName().lastIndexOf("/")+1));
                     dest = new BufferedOutputStream(fos, BUFFER);
                     while ((count = zis.read(data, 0, BUFFER))!= -1)
                        dest.write(data, 0, count);
                    dest.flush();
                    dest.close();
             zis.close();
        catch (Exception ex)
            unZipResult++;
            System.out.println(ex);
        }Thanks,
    Thanuja.

  • Unzip the file

    I need to Unzip a file from Folder 1 and place it in Folder2.
    Folder 1 has a zip file, which a txt file embedded in it. PI need to unzip the file and place the file in Folder2 with same name.
    I have created a Configuration Scenario for this, no IR objects.
    I have used PayloadZipBean with ModuleConfiguration as
    ParameterName- zipmode and ParamterValue - unzip in my sender file channel and same  is used in receiver channel.
    For some reason when I see the payload in sender communication channel log, it is automatically converted to XML with some junk values along with the data.
    Another issue is although I have checked the Adapter Specific Properties on both the channels, it expects a name on Receiver file channel. So I have given a dummy name there. File got created in Folder2 but with some junk values in XML format.
    Any thoughts please.

    Thank You both.
    Greg - your idea worked.
    On the other issue looks like I can not use Adapter Specific Properties on both the channels. when I use ASMA File got created in Folder2 but with some junk values in XML format.
    Looks like it expects a name on Receiver file channel. So I have given a dummy name there.
    Edited by: Vamsi on Feb 23, 2012 6:15 PM

  • Unzip a file preserving the folder structure

    Hi guys,
    I have create a zip file using java.util.zip and I preserv all directory structure. When I unzip the file using the same library, in the loop of ZipEntry I don't find never a directory. This the code that I use and don't work:
    public void dataDecompression(String pathArchivio) {
        try {
            fileInputStream = new FileInputStream(pathArchivio);
           checkedInputStream = new CheckedInputStream(fileInputStream, new Adler32());
           zipInputStream = new ZipInputStream(new BufferedInputStream(checkedInputStream));
           ZipEntry entry;
           while((entry = zipInputStream.getNextEntry()) != null){
                if(entry.isDirectory()){
                     //make dir          
               else{
                    //write file
    }Maybe I miss something in compression? Excuse for my bad english.
    Thanks in advance.

    three problems with that.
    1) you don't recusively create folders.
    2) you create a folder with the name of the file you want to write.
    3) you don't create files.
    File file=new File(entry.getName());
    if(file.getParentFile()!=null);
         file.getParentFile().mkdirs();
    if( !entry.isDirectory() ) {
    //code that write file;

  • Unzip GZ files using Powershell

    I have  Windows 2008 Server with some GZ type files in a folder. I would like to script unzipping them using Powershell, can someone tell me if this is possible and how I would do it?
    The folder is d:\data_files\ and I'd like to uncompress all the .gz files in there
    I've searched around on the Net but can't find much that deals with GZ files specifically. The files are all named data-1.gz, data-2.gz etc
    Hello
    I have  Windows 2008 Server with some GZ type files in a folder. I would like to script unzipping them using Powershell, can someone tell me if this is possible and how I would do it?
    The folder is d:\data_files\ and I'd like to uncompress all the .gz files in there
    I've searched around on the Net but can't find much that deals with GZ files specifically.

    I also found that .Net 2.0 and above has native code for dealing with gzip files.
    Function DeGZip-File{
    Param(
    $infile,
    $outfile = ($infile -replace '\.gz$','')
    $input = New-Object System.IO.FileStream $inFile, ([IO.FileMode]::Open), ([IO.FileAccess]::Read), ([IO.FileShare]::Read)
    $output = New-Object System.IO.FileStream $outFile, ([IO.FileMode]::Create), ([IO.FileAccess]::Write), ([IO.FileShare]::None)
    $gzipStream = New-Object System.IO.Compression.GzipStream $input, ([IO.Compression.CompressionMode]::Decompress)
    $buffer = New-Object byte[](1024)
    while($true){
    $read = $gzipstream.Read($buffer, 0, 1024)
    if ($read -le 0){break}
    $output.Write($buffer, 0, $read)
    $gzipStream.Close()
    $output.Close()
    $input.Close()
    $infile='C:\Temp\DECfpc1new.csv.gz'
    $outfile='c:\temp\DECfpc1new.csv'
    DeGZip-File $infile $outfile
    You can supply the function with the full path of the file to be unzipped, and the full path of the unzipped file.
    If you don't supply the unzipped file path, the function will unzip the file into the same folder as the source, and remove the .gz extension.
    Inspired by Heineken.

  • Problem using payloadZipBean to unzip a file

    I would like to run OS command to zip large amount of xml into one zip file before XI pick it up, then use unzip option in payloadZipBean to unzip all the xml files so XI can process them one by one from memory, this will reduce lots file I/O time.
    But I am getting this warning message:
    Warning Zip: message is empty or has no payload
    But if I display this message in RWB, the only payload is this zip file.
    Why the payloadZipBean is not unzipping this file as supposed to.

    Did you check this blog
    /people/stefan.grube/blog/2007/02/20/working-with-the-payloadzipbean-module-of-the-xi-adapter-framework
    Sameer

Maybe you are looking for

  • What kind of a case should I get for my video iPod?

    Hi, I want to get a case to protcet my video iPod. I have a 30 GB iPod. I was wondering what type of case works well for protecting you iPod? Does anyone have any recommendations? How musch do iPod cases cost? Thanks for your help, lizabler Fifth Gen

  • Processing R134 Tables in a VI

    Hi you all! I hope you´re all fine I´m working in the digitalization of a Refrigeration Bank. It´s for testing and experimental purposes (mechanical Engineering students). I made the VI that I considered that fits for the case. It´s the one in the at

  • Alert Frequency in Solman

    Hi All, We can change the Alert frequency in Solman, but can we customize it in respect of Green , Yellow n Red alerts. E.g- say a alert is CPU utilization now i want that if it is populating Red alert then it should come in 0 sec and it is populatin

  • Connecting a servlet in tomcat with a database

    Hello i have this problem, i have an aplication that connects to a database, but when a servlet in tomcat use it, i get the problem that the connection is null and you can't connect to it. Anyone know something about this? i have to change any parame

  • How can I make ITunes downloading again?

    Dear all ITunes stops reacting when I download e.g. apps or podcasts. It starts normally but after a while it just stops. This happens since a couple of days. Never had any problems before.