To convert some encoded data (e.g. bytes, electrical signals) to some representation ready for further processing (e.g. string, object, picture)
Questions tagged [decode]
4353 questions
1
vote
1 answer
Getting image from data uri
I'm trying to scrap data and one of the data is also the image, which is embeded in data uri. I can't figure it out hot to do this with r.
library(rvest)
webUrl<-"https://portaltramites.inpi.gob.ar/Marcas/Logo?Acta=3363531"
imgscr<-…

Urgo
- 55
- 5
1
vote
0 answers
Window.atob in javascript providing different decoded value to Base 64 Decoder Java
I have the following base 64 encoded string:
e4EdYQYDTpC7sN0K87elHA==
In Window.Atob in javascript it provides me with {aN»°Ý ó·¥ however when running the below code in Java it gives me
{�aN����
�
String encodedString =…

Charabon
- 737
- 2
- 11
- 23
1
vote
1 answer
C# Convert a Unicode escaped to a string
I have a text such as "abc\u001357". It's a parameter in json object which I send from client to server via http.
How can I convert that text to a string like "abc%1357". I tried with Regex to replace characters. But it doesn't work
Thanks for…

AcidBurn
- 73
- 2
- 15
1
vote
1 answer
Extract image URLs from Instagram media feed with JSON and PHP
I am trying to extract the different image URLs from the Instagram media feed:
items->images as $instaimage){
echo…

rainerbrunotte
- 907
- 1
- 17
- 37
1
vote
0 answers
Decoding string received from the server
An Android app receives some text from a server, the text should be shown for the user as a message of an AlertDialog. The text is a part of a JSON that the client receives in a response.
The text is translated into several languages, which the app…

Dmytro Kulykov
- 115
- 9
1
vote
2 answers
How to decode ascii combined with string in python
I am trying to decode and ascii which is combined with string
example
glbosworth
But i am not getting exact output
'glbosworth'.decode("ascii")
output
u'glbosworth'
if u remove this…

Mounarajan
- 1,357
- 5
- 22
- 43
1
vote
1 answer
How can I unpack UDP-packets(doubles) received from Simulink
I am sending a UDP-packet in double data type to a RaspberryPi via Simulink. I want to decode the UDP-packet with the following code:
import struct
import socket
sock =…

PyschoAndreas
- 11
- 1
1
vote
1 answer
Blowfish decrypting hex encoded string
I'm trying to decrypt Hex encoded string via Blowfish. But the result is different from the correct one.
String s="a1d0534e4baf9e670bde8670caee8b87"
String decKey = "R=U!LH$O2B#";
Cipher m_decrypt =…

Mikhail
- 800
- 8
- 21
1
vote
1 answer
Incorrect decoding of H264 video stream on Nexus devices
I'm trying to use android MediaCodec class to decode h264 video stream of remote camera. My code is:
public class RemoteCamera {
public interface OnCameraListener {
void onConnected();
void onFailureConnection();
void onDisconnected();
…

Alexey Nesmelov
- 11
- 2
1
vote
1 answer
Using AND condition in decode
I have a scenario where I need to check the date and a value to determine the result.
Ex-
case when my_date > '10-01-2011' and my_value = 0 then
'Do this'
else
'Do that'
end
I'm trying to use this in oracle SQL query, I was wondering if there is a…

Firstname
- 355
- 4
- 8
- 16
1
vote
4 answers
Decode base64 data as array in Python
I'm using this handy Javascript function to decode a base64 string and get an array in return.
This is the string:
base64_decode_array('6gAAAOsAAADsAAAACAEAAAkBAAAKAQAAJgEAACcBAAAoAQAA')
This is what's…

Jelle De Loecker
- 20,999
- 27
- 100
- 142
1
vote
2 answers
I'm getting "extra data in buffer" error when trying to decode a gob in golang
I'm encoding and sending multiple objects on a stream. I decode them as show in code below, keeping the connection open. I'm getting "extra data in buffer" error on the decode of all objects after the first.
func handleAggregatorConnection(conn…

Rick Giuly
- 983
- 1
- 14
- 19
1
vote
1 answer
Python UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8c in position 2: invalid start byte
anyone know how do i decode my Hex value on Python version 3.6.0 ?
i was using x.decode("hex") but since python update it doesn't work anymore.
here is my hex…

Cascraft Cascraft
- 75
- 5
1
vote
1 answer
Can the iPhone/iPad decode Jpeg2000 images client side?
I have done a fair amount of looking around on the internet for an answer to this question, and have little to show for it. I am making an app that will stream medical images over the internet, which will be in Jpeg2000 format, and then I need to…

Steve B.
- 51
- 1
- 6
1
vote
0 answers
How to convert unicode to text in php
Unicode:
\u0000T\u0000h\u0000i\u0000s\u0000 \u0000i\u0000s\u0000 \u0000a\u0000 \u0000t\u0000e\u0000s\u0000t\u0000\ufffd\ufffd\ufffd
Text:
This is a testííí
I am receiving this unicode in post request. How to convert above unicode to text. I want…

Omi
- 3,954
- 5
- 21
- 41