Questions tagged [decoding]

Decoding is the reverse of encoding.

Decoding is the reverse of , which is the process of transforming information from one format into another understandable by a receiver. In communication theory and coding theory, decoding is the process of translating received messages into codewords of a given code. Like encoding, decoding applies to information of various forms:

1741 questions
0
votes
0 answers

Read and decode BLOB image in database, but the image is in application/Octetstream

I have an image stored in database, with BLOB as datatype but it shows this content. Its also base64 encoded. How to decode this in Java? I have tries several things. but no luck.
hasn-147
  • 33
  • 1
  • 9
0
votes
0 answers

Reading corpus text with nltk.corpus.reader.plaintext - Python 3

I am using the NLTK.corpus module in Python (3.6.3) to build and analyze a corpus I have created. This corpus consists of several hundred documents. To access the content of a document in the corpus, I use the .raw command but this is throwing an…
Roald Schuring
  • 179
  • 1
  • 3
  • 13
0
votes
3 answers

Representing non-English characters with Unicode (UTF-8)

I am working with an HTML string in Python that contains non-English characters that is represented in the string by 16-bit unicode hex values. The string reads: "Skr\u00E4ddarev\u00E4gen" The string when properly converted should read…
0
votes
1 answer

Decode Javascript bookmarklet

I have quite long Javascript bookmarklet and i don't have source code anymore. It is possible to decode it in Notepad++ but it is stil quite hard. Any ready tool for decoding Javascript bookmarklet? Update: As i mentioned, i don't have source code…
Roger Wayne
  • 419
  • 3
  • 20
0
votes
1 answer

Decode "x9f\x00ä\x00?\x00_\x00ë\" etc. string in Python 3

I would like to extract some general properties of pdf files. So far this has worked very well, except I've encountered a weird new error today while trying out a new input file. For the parsing, I'm using pdfminer.six. This is what the code to…
0
votes
2 answers

Convert garbled Japanese text back to readable Japanese

I have a file with garbled Japanese text and need to convert it back to readable Japanese. The problem is that a) I don't know which encoding the original text used, and b) I don't know much about encodings and decodings and how to even go about…
Alex Ixeras
  • 160
  • 1
  • 11
0
votes
1 answer

Decode AES 256?

i have this method for decoding: -(NSString *)decrypt:(NSString *)encryptedTextValue withSecret:(NSString*)secret { NSData *encryptedData = [NSData base64DataFromString:encryptedTextValue]; NSData *decryptedData = [encryptedData…
David
  • 857
  • 1
  • 11
  • 25
0
votes
0 answers

How to check whether a PKCS#7 signature valid or not in Java

I have been doing this task for more than 3 days, and finally I realised that I need some help. I have 2 files - a PKCS#7 file(base64 encoded) and a file which was signed by the PKCS#7(say, pdf). My question is how can I check whether the sign is…
0
votes
1 answer

Base64 string to UIImage Issue

Disclaimer: There's many questions on SO asking the same thing here. I've attempted to directly follow the solutions on those questions with no success. I've tried to avoid posting this duplicate. Hello, I'm having trouble decoding a base64 encoded…
Evan Cooper
  • 146
  • 1
  • 2
  • 10
0
votes
0 answers

The right format for images in JSON

I'm working on a project using Swift. For it, I have to create a JSON file, which should also contain images. Now, I've tried to add Images to Xcode's Assets catalog and then create from them a Base-64 encoded string (I would like their format in a…
Tigran Iskandaryan
  • 1,371
  • 2
  • 14
  • 41
0
votes
2 answers

Display raw JSON with non-ascii characters

I'm having trouble displaying raw JSON data in the terminal, using Python3. I get the json as a response from urllib: r = urlopen(request) response = r.read() The result is a byte string b"...", part of which contains non-ASCII characters like…
Ray P.
  • 875
  • 1
  • 9
  • 24
0
votes
1 answer

How to decode a text file by extracting alphabet characters and listing them into a message?

So we were given an assignment to create a code that would sort through a long message filled with special characters (ie. [,{,%,$,*) with only a few alphabet characters throughout the entire thing to make a special message. I've been searching on…
stripbubbles
  • 1
  • 1
  • 1
0
votes
0 answers

encoding and decoding using VideoToolBox

I'm writing a Mac app that encodes AVCaptureVideoDataOutput with H264 using videotoolbox framework. VTCompressionSessionRef session; OSStatus ret = VTCompressionSessionCreate(NULL, (int)width, (int)height, kCMVideoCodecType_H264, NULL, NULL, NULL,…
0
votes
5 answers

Not able to convert HEX to ASCII in python 3.6.3

I tried below methods, but no luck. method 1: var contains the hex value bytes.fromhex(var).decode('ascii') Traceback (most recent call last): File "", line 1, in UnicodeDecodeError: 'ascii' codec can't decode byte 0xdb in position…
apan
  • 353
  • 3
  • 11
0
votes
1 answer

Error with bencode and torrent file

I am using this bencode https://github.com/dampcake/bencode to decode a torrent file. I am having an issue : the encoded torrent file looks something like this : d8:announce21:http://127.0.0.1: ....etc..... piece…
stevemju
  • 1
  • 1