#2058 There Was An Error Decompressing The Data
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more error decompressing data corrupted installer about Stack Overflow the company Business Learn more about hiring developers or posting ads
Premiere There Was An Error Decompressing
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ByteArray - Error #2058: There was an error decompressing the data up vote 1 down vote favorite I'm making a data formatter for a game i'm making. it's a fighting game, and it'll import formatted and compressed character/stage data, making it easier for me to make DLC or expansion content if i decide to. it also keeps the data loading to a minimum! anyhow, here's how i'm going about it: character/stages need 1 sprite sheet and 1 metadata JSON extract bitmapData from image and save into a variable load and encrypt JSON string using a combination of xor and base64 encryption (decrypts fine) make object and put them both into it -> { sheet: [bitmapData], meta: [cryptString] } write that all into a ByteArray and compress using byteArray.compress(); write byteArray into a file and save it it's fairly straightforward i think, but when i try to decompress one of those files (using byteArray.uncompress(); of course), i get this error in FlashDevelop: [Fault] exception, information=Error: Error #2058: There was an error decompressing the data. BUT, right before that, it traces the data correctly! loaded ucd name: dummy loaded ucd json: {"stats":{},"hitboxData":{},"animationData":{},"name":"dummy"} is this a bug?? do i have to worry about it messing something up? if i end up doing expansion characters, i want to be able to make this data formatter a public tool so people can work on their own characters or stages, like MUGEN, but easier. sorry if this is too detailed or whatever, but this is my first time asking a question and i wanted to make sure there was no misunderstandings :> actionscript-3 air share|improve this question asked Jan 8 '15 at 0:15 Psycho 184 Hmm, what algorithm are yo
Support Search GitHub This repository Watch 2 Star 3 Fork 1 SempaiGames/GafPlayer Code Issues 0 Pull requests 0 Projects 0 Pulse Graphs New issue [Fault] exception, information=Error: Error #2058: There was an http://stackoverflow.com/questions/27830979/bytearray-error-2058-there-was-an-error-decompressing-the-data error decompressing the data. #1 Closed SlavaRa opened this Issue Nov 27, 2015 · 0 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 1 participant SlavaRa commented Nov 27, 2015 https://github.com/SempaiGames/GafPlayer/issues/1 I try build sample from this repo. target: flash Haxe 3.2.1 haxelib list: gafplayer: [1.0.0] openfl: [3.4.0] SlavaRa referenced this issue Nov 28, 2015 Merged fixes #1 #2 DanielUranga closed this in #2 Dec 9, 2015 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Support Search GitHub http://flash.bigresource.com/ActionScript-3-0-uncompress-method-of-ByteArray-only-supports-level-3-compressed-streams--9RlRQRC0G.html This repository Watch 0 Star 0 Fork 0 doublefx/as3-commons Code Issues 49 Pull requests 0 Projects 0 Pulse Graphs New issue Error decompressing byte array via ByteCodeType.fromByteArray #75 error decompressing Open GoogleCodeExporter opened this Issue Jan 21, 2016 · 10 comments Projects None yet Labels auto-migrated Priority-Medium SubProject-bytecode Type-Defect Milestone No milestone Assignees No one assigned 1 participant GoogleCodeExporter commented Jan 21, 2016 What steps there was an will reproduce the problem? 1. Use ByteCodeType.fromByteArray(ba, ApplicationDomain.currentDomain); where ba is the byte array for a swf ( as included in the example :[Embed(source="someswf.swf", mimeType="application/octet-stream")] private var swfInput:Class; function parseSWF():void { var ba:ByteArray = new swfInput() as ByteArray; ByteCodeType.fromByteArray(ba, ApplicationDomain.currentDomain); }) What is the expected output? What do you see instead? I was expecting some sort of information, but instead I got this error: Exception fault: Error: Error #2058: There was an error decompressing the data. at flash.utils::ByteArray/_uncompress() at flash.utils::ByteArray/uncompress() at org.as3commons.bytecode.reflect::ReflectionDeserializer/read()[C:\projects\as3-commons\as3-commons-bytecode\src\main\actionscript\org\as3commons\bytecode\reflect\ReflectionDeserializer.as:83] at org.as3commons.bytecode.reflect::ByteCodeTypeProvider/fromByteArray()[C:\projects\as3-commons\as3-commons-bytecode\src\main\actionscript\org\as3commons\bytecode\reflect\ByteCodeTypeProvider.as:119] at org.as3commons.bytecode.reflect::ByteCodeType$/fromByteArray()[C:\projects\as3-commons\as3-commons-bytecode\src\main\actionscript\org\as3commons\bytecode\reflect\ByteCodeType.as:149] at inspect::C()[/Users/george/Documents/fdt/PointTest/src/inspect/C.as:16] What version of the product are you using? On what operating system? as3commons-bytecode-1.0-RC5.swc as3commons-lang-0.3
I have a valid zlib compressed file but compressed in level 2, and Flash always throws me the 2058 error message. I've also tried using the DefaultCompressionAlgorithm class for AIR with its two compression methods, but with no success. Doing some quick tests with python using the same file gets uncompressed with no problems. View 3 Replies Similar Posts: C# :: .NET Zlib Stream Compatible With ByteArray.uncompress? Oct 9, 2009 I can't seem to get a stream that Flex 3 want's to decompress.I've tried:System.IO.Compression.GZipStreamSystem.IO.Compression.DeflateStreamICSharpCode.SharpZipLib.Zip.Compression.Streams.DeflaterOutputStreamzlib.ZOutputStreamNone of these seem to make ByteArray.uncompress happy, i.e. I getError #2058: There was an error decompressing the data.Also the whole Deflate vs zlib has me going around in circles. It seems that according to the wikipedia article, zlib is an implementation of DEFLATE. But according to Actionscript they are two different things? Microsoft also seems to indicate the Gzip at least uses the Deflate algorithm, as in their docs they refer that GZipOutputStream uses the same compression algorithm as DeflateStream. So I'm assuming that it's just a header difference, which would indicate that's "no good" as far as 'ByteArray.uncompress' as the "DEFLATE" algorithm is only supported in AIR applications.Sample "server" code, using SharpZipLib in this case (not working):public virtual bool ProcessRequest(string path, HttpListenerContext context){var buffer = File.ReadAllBytes(path);// Specifying to strip header/footer from data as that seems to be what the[code].... View 2 Replies Flash :: Uncompress Zip Data Without ByteArray.inflate() Sep 6, 2011 Is there a way to uncompress ziped data without inflate()? View 1 Replies ActionScript 3.0 :: How To Convert Compressed String Into ByteArray Type Oct 12, 2009 I have a string, I am compressing it with bytearray and save it to a file. In oth