corrupt

How can I recover files from a corrupted .tar.gz archive?

你说的曾经没有我的故事 提交于 2019-12-31 11:31:56
问题 I have a large number of files in a .tar.gz archive. Checking the file type with the command file SMS.tar.gz gives the response gzip compressed data - deflate method , max compression When I try to extract the archive with gunzip, after a delay I receive the message gunzip: SMS.tar.gz: unexpected end of file Is there any way to recover even part of the archive? 回答1: Are you sure that it is a gzip file? I would first run 'file SMS.tar.gz' to validate that. Then I would read the The gzip

git svn rebase: Incomplete data: Delta source ended unexpectedly

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-30 05:56:10
问题 I have been maintaining the git mirror of the watir project. Some time a couple weeks ago, we had someone ready to submit their first git-based patch. Unfortunately, we ran into some issues regarding line endings (CRLF vs. LF, etc.) because of the multi-platform nature of the project. I tried what I could to set the autocrlf option (to 'input'), and do some --hard resets. However, a few days later, the daily update (git svn rebase) is spewing this error: Incomplete data: Delta source ended

Symfony2 forcing jpg download returns corrupted file

女生的网名这么多〃 提交于 2019-12-25 07:38:32
问题 Following some of the many posts related to the subject I finally came up with this version of the "force download" code: public function downloadAction(Request $request){ $filename= 'test.jpg'; $response = new Response(); $response->headers->set('Content-Type','image/jpg'); $response->headers->set('Content-Disposition', 'attachment; filename="' . basename($filename) . '"'); $response->sendHeaders(); $response->setContent(file_get_contents($filename)); return $response; } Now, this works fine

Access (.mdb) file corrupted during servlet write to the client

一笑奈何 提交于 2019-12-24 06:38:55
问题 This was originally a part 2 of a different thread, but another use suggested that I separate the part 2 into it's own topic, so here we go. Original thread is here (Original Thread) I am using Jackcess to create a V2010 mdb file that I need to transfer to a client that will use Access 2013 to open it. Jackcess itself works - V2010 creates a file that Access 2013 can open when the file is FTP'd to the client by a third party software, such as FAR. However, when I try to upload this file to

TCP data occasionally received in wrong order and incomplete

我怕爱的太早我们不能终老 提交于 2019-12-23 19:03:27
问题 I have created TCP Server application in Java, and a client application in C#. When i am sending data, the client sometimes receives data out of order, and sometimes parts miss entirely. Basically, the code i use in the server (java) looks like this (stripped): ServerSocket welcomeSocket = new ServerSocket(port); Socket connectionSocket = welcomeSocket.accept(); outputStream = new DataOutputStream(socket.getOutputStream()); //Create stream outputStream.writeBytes(message + "\n"); outputStream

error: object file is empty .git/objects/../.. is empty — fatal: loose object … is corrupt

℡╲_俬逩灬. 提交于 2019-12-23 11:55:19
问题 So this is the fifth time this has happened in the past three weeks and I am really stumped as to why this keeps happening. This is the exact message I get when I do 'git status' error: object file .git/objects/48/088f00d90b0d27de65336bb9ed9a75b0cfed33 is empty fatal: loose object 48088f00d90b0d27de65336bb9ed9a75b0cfed33 (stored in .git/objects/48/088f00d90b0d27de65336bb9ed9a75b0cfed33) is corrupt I've tried recommendations such as deleting the corrupt object, but then the same error comes up

SVN E155016 The working copy database at … is corrupt

倖福魔咒の 提交于 2019-12-23 07:26:25
问题 My computer exploded while in the middle of an svn (version 1.8.8) update command. Now svn does nothing just tells me the working copy is corrupt. svn: E155016 The working copy database at [dir] is corrupt I have no idea what to do, any suggestions? 回答1: I solved the issue with a cleanup + revert + update (in that order) 回答2: Cleanup Try svn cleanup in your working copy http://svnbook.red-bean.com/en/1.8/svn.ref.svn.c.cleanup.html New checkout Try to make a new checkout to different place. If

Detect if PDF file is correct (header PDF) [closed]

时光毁灭记忆、已成空白 提交于 2019-12-17 05:48:25
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I have a windows .NET application that manages many PDF Files. Some of the files are corrupt. 2 issues: I'll try to explain in my imperfect English...sorry 1.) How can I detect if any pdf file is correct ? I want to read header of PDF and detect if it is correct. var okPDF =

How to avoid occasional corrupted downloads

久未见 提交于 2019-12-14 00:26:19
问题 My website hosts a msi file that users need to download. There is nothing special about the file. It lives in a directory on the webserver with a regular HREF pointing to it that users click on. Occasionally a user will complain that they can't open the msi file because Windows Installer claims the file is corrupt. Redownloading the file doesn't help. I end up emailing the file as an attachment which usually works. My guess is that the file is either corrupted in the user's browser cache or

How to check if downloaded PNG image is corrupt?

廉价感情. 提交于 2019-12-14 00:24:47
问题 I am downloading multiple images from below code and saving to the DB. But for some images I am getting below error. Error: ImageIO: PNG invalid distance too far back Error: ImageIO: PNG incorrect data check dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0ul); dispatch_async(queue, ^{ NSString *imgStr = [dict objectForKey:@"image"]; imgStr = [imgStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSData *imgData = [NSData