decoding

[PHP] Translating IMAP body based on their encoding

Hi all, From the manual, I know that there are 6 different transfer encoding in IMAP. At this point, I've created this basic function: function translate_imap_body($body, $encoding) { switch($encoding) { case 0: return $body;break; case 1: return $body;break; case 2: return $body;break; case 3: return base64_decode($body);br...

How to decode a text string encoded in the ISDB (ARIB) Transport streams?

Hi, How to decode a text string encoded in the ISDB (ARIB) Transport streams? Some encoding technique is specified in Chapter 7 of Part 2 (Mono media Coding) of ARIB STD-B24 Version 5.2 (Volume 1) specification. But I am not sure whether this encoding is different from other standard Japanese character encoding techniques, like EUC-JP...

C# base64 encoding/decoding with serialization of objects issue

I'm using serialization and deserialization in C# for my Project (which is a Class). They are serialized and saved to an XML file. When loading the Project, all goes well. Now I'm trying to encode the serialized Project to Base64 and then save the file, which goes well too. The first line of the file (before encoded!) looks like this: ...

Decoding File Format (Norton .FBF)

Hey there, I currently have a norton ghost backup of the 'My Documents' folder, however norton ghost does not allow me to restore 'all' my files at once, and only has the functionality to search for specific files and restore them. This is a problem as I have nearly 100GB of important documents and such, that are locked away in these .f...

Cannot decode/encode in UTF-8.

I have a text-box which allows users to enter a word. The user enters: über In the backend, I get the word like this: def form_process(request): word = request.GET.get('the_word') word = word.encode('utf-8') #word = word.decode('utf-8') print word For some reason, I cannot decode or encode this!! It gives me the err...

Problem when using python logging in django and unicode

Hi there - totally confused by now... I am developing in python/django and using python logging. All of my app requires unicode and all my models have only a unicode()`, return u'..' methods implemented. Now when logging I have come upon a really strange issue that it took a long time to discover that I could reproduce it. I have tried b...

Decoding tcp packets using python

Hello I am trying to decode data received over a tcp connection. The packets are small, no more than 100 bytes. However when there is a lot of them I receive some of the the packets joined together. Is there a way to prevent this. I am using python I have tried to separate the packets, my source is below. The packets start with STX byt...

how to parse byteArray containing mms using java

hi.. I have a byteArray containg MMS . I want to parse it, means I want to separate MMS header and mime parts(images/sound/video). I have no idea how to do it, i have read WAP WSP Spec for decoding MMS, but not able to understand. please provide links for any tutotrial(for beginners) or java code. Thanks in advance; ...

Which vendors/companies have Multi-threaded Video codec solutions?

Hi, If its not relevant here, pls. move to correct place. I want to find out which all vendors/companies have developed multi-threaded video codecs(decoders , encoders) as commercial products? Not opensource solutions like libavcodec/x264/ffdshow etc... but commercial solutions for which one can obtain licenses/performance numbers of t...

How to implement dispatcher feeding a multithreaded reader pool

I have a decoder that acts as a producer and places decoded video frames at a shared memory buffer. I have consumer processes that each runs on a separate thread, reads a frame and processes it. I would like to implement a dispatcher process thread that Checks the shared memory buffer and sends teh next unread frame to a selected consu...

Query string value having "&"

...

Decoding Encoded Audio Data (MP3s, etc) on Android Without Playing It

Short version: What is the best way to get data encoded in an MP3 (and ideally in an AAC/Ogg/WMA) into a Java array or ByteBuffer that I can then manipulate? I'm putting together a program that has slowing down and speeding up sound files as one of its features. This works fine for WAV files, which are a header plus the exact binary da...

Using QTVisualContextCopyImageForTime to unpack Quicktime movies in YUV

I am creating a pixel buffer using QTPixelBufferContextCreate with the native size for current movie. Then opening the movie on the context and cue to required frame, checking using QTVisualContextIsNewImageAvailable. Then calling QTVisualContextCopyImageForTime to readback the frame for further cpu based image processing. This has all ...

How can I do LZW decoding in Java?

I have a database which contains picture data stored as a binary blob. The documentation says the data is encoded using LZW. I thought that I could decode it using the Zip or GZip input streams found in the Java library, but it didn't work - I got an exception that said the format of the data is not correct. From what I've read, the lib...

what's the current mp3 royalties/licensing situation

So i see a lot of software that has mp3 encoding and/or decoding and I'm pretty sure that they don't pay the royalties to Thomson as required here: http://mp3licensing.com/royalty/software.html So I'm wondering, is there a loophole that i don't know about? Is there a library that doesn't require any royalties/licensing fees? ...

Suggest encoding which removes slashes which I can use as the format for REST-style URL-paramteters

Given a path to a REST style URL: http://site.com/rest/customer/foo/robot/bar/1 When you GET it, it returns a PDF to the foo-customer containing page 1 of the bar-URL. While foo is the name of the customer bar is an URL. The URL usually contains slashes and might look something like this: http://anothersite.com/interestingarticle.ht...

How to decode an encoded string?

While decoding,I am getting NSData bytes by decoding a string.I am converting NSData bytes as string: -(void)decodeAction:(NSString*)str { NSData *data=[NSData base64DataFromString:str]; NSString *stt=[NSString stringWithFormat:@"%@",data]; printf("\n stt %s",[stt UTF8String]); } Then I am getting the following output: <4f7c2...

Easy way to convert a string of 0's and 1's into a character? Plain C

I'm doing a steganography project where I read in bytes from a ppm file and add the least significant bit to an array. So once 8 bytes are read in, I would have 8 bits in my array, which should equal some character in a hidden message. Is there an easy way to convert an array of 0's and 1's into an ascii value? For example, the array: ch...

POST String Decoding in PHP

Is ther any built in function in PHP to decode przysi%25C4%2599gam%2520s%25C5%2582u%25C5%25BCy%25C4%2587 into przysięgam służyć ? ...

mcrypt decoding errors

Hi, I have a few issues with the following php functions (part of a bigger class). //encode public function acc_pw_enc($text, $key) { $text_num = str_split($text, 8); $text_num = 8 - strlen($text_num[count($text_num)-1]); for ($i=0; $i < $text_num; $i++) { $text = $text . chr($text_num); } $cipher ...