Solved

Saving binary - Simple but Urgent!

Posted on 2007-04-09
4
208 Views
Last Modified: 2010-04-15
Hello,

I have a simple problem. I want to save a file from ms access to the desk. However, chars are being added at the beginning of the file and when I'm extracting the files it's being corrupted.

Here's my application:

http://www.geocities.com/i950i950/WindowsApplication1.zip

If I manually remove the added chars the file works just fine.

How can I fix this?

Thank you in advance.
0
Comment
Question by:i950
  • 2
  • 2
4 Comments
 
LVL 62

Expert Comment

by:Fernando Soto
ID: 18875972
Hi: i950;

I had no problem running the program and creating the file. When I ran WinZip on it, it uncompressed the file giving me two extracted files, it121_setup.exe and Readme.txt. I opened the readme file and it looks fine. What extra characters are being added on your system?

Fernando
0
 

Author Comment

by:i950
ID: 18877702
Hello,

It only works with WinRar not with WinZip. When I try it with WinZip I get:

error [c:\test.zip]: start of central directory not found; Zip file corrupt.
Possible cause: file transfer error.

The added characters differs from one editor to another. Here's what I get when I open it with NotePad:

$            Binary  Binary           Binary          ,؛  

Thanks.
0
 

Author Comment

by:i950
ID: 18877942
Here's the original file so you can see the difference:

http://rapidshare.com/files/25143130/it121.zip

Please help.
0
 
LVL 62

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 18878497
Hi i950;

I looked at the two files the one you sent as the original and the one that I get from the DB file in your project.

   Original   =  47,660 Bytes
   From DB =  47,728 Bytes

And the byte values were all different as well as the two file being of different size. I suspect that the compression algorithm  that was used to compress the files were different. But I was able to uncompress both with no problem using WinRNR, I could not try WinZip because I do not have it on my machine.

Fernando
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now