Questions tagged [decode]

To convert some encoded data (e.g. bytes, electrical signals) to some representation ready for further processing (e.g. string, object, picture)

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Decrypting: "EVP_CIPHER_CTX_set_key_length:invalid key length" sometimes and i dont know why

I send from Android InitialVector(iv) "testtesttesttest" and php decrypt the message right, but "testtesttestitot" give me error. From Android both are 16 bytes long. php gets 64 ...
ProgTerracom's user avatar
-2 votes
0 answers
22 views

Facing a problem in a coding and decoding words in secret language kinda project [closed]

The problem here is in decoding. When I encode the word "hello" it gives me this output "ollehhello". What's wrong? I know it will not work for sentences. I tried to decode ...
Faris A's user avatar
0 votes
0 answers
83 views

How to convert base64 data to image

I'm trying to display base64 data from the server on my page, I tried first with the code below which works fine with mime type png, I need to cover all image extensions now and I don't know which ...
547n00n's user avatar
  • 1,386
-2 votes
0 answers
34 views

I need help to decode the flag in the function __decode_flag . It is also given a hint .i cant find the solution for the XOR part

import base64 import binascii decodedFlag = 'That would have been too easy ^^' encodedFlag = b'...
zigzagu's user avatar
1 vote
2 answers
61 views

Custom decoder init for nested associated values

I'm trying to implement a custom init(from decoder: Decoder) throws {} for the Decodable protocol, but I get an error: DecodingError.typeMismatch(Swift.Dictionary<Swift.String, Foundation.JSONValue&...
Nick Rossik's user avatar
  • 1,108
-3 votes
0 answers
36 views

Using Instagram APIs

i.instagram/api/v1/web_profile_info/?username= Using PHP, how can we download the Instagram user's profile picture as jpg by sending a request here and decoding the data we receive as json? Please ...
razor's user avatar
  • 1
-1 votes
0 answers
41 views

how to create psbtBid(hex) to buy NFT ordinals (unisat)

on unisat (selling NFTs) I can’t implement the purchase of NFTs in python. Problem: I don't understand how to create psbtBid(HEX). Also, in order to understand what it consists of, I tried to decipher ...
mihasi's user avatar
  • 1
0 votes
1 answer
130 views

converting special string to std::wstring c++

I defined a const char* s = "\u0633\u0644\u0627\u0645" which should be translated to std::wstring as L"سلام". How can I perform this conversion? In other words, I need something ...
Babak.Abad's user avatar
  • 2,885
0 votes
0 answers
27 views

How to validate JWT signature

I have a program where I am encoding and decoding JWT token but while decoding I am not verifying the signature. package com.immersivelabs.forum.utils; import javax.crypto.spec.SecretKeySpec; import ...
Aayush Bajaj's user avatar
0 votes
0 answers
35 views

How to convert iBeacons UUID to MAC address?

I have iBeacons UUID, major and minor parameters and I want to decode the MAC address of the beacon. I have searched all over the internet and only version 1 UUID's have their MAC address in their ...
Aitazaz's user avatar
1 vote
1 answer
116 views

Is that true that result of decoding XORed permutation will always be unique?

I'm struggling with the LeetCode task: Decode XORed Permutation There is an integer array perm that is a permutation of the first n positive integers, where n is always odd. It was encoded into ...
Szyszka947's user avatar
0 votes
0 answers
52 views

Go json.NewDecoder.Decode convert time.time to 0001-01-01 00:00:00 +0000 UTC

I am using to json.NewDecoder.Decode to get data from http.response like following if response.StatusCode == http.StatusOK { var httpResponse models.httpResponse err = json....
wltz's user avatar
  • 639
0 votes
0 answers
46 views

%FF encoding between java and js

I have a jsp that prints the contents of a file: out.println(URLEncoder.encode(fileContents)) Then, in js, I decode the result with decodeURIComponent(result) But, I get an error on: %FF URIError: ...
Travis Heeter's user avatar
-1 votes
0 answers
32 views

NetSuite Saved Search with multiple decode function

I want to check the condition in the sales order if the item type is non inventory and it is fulfillable and it is not fulfilled. Then check if any inventory item type is available check it is fully ...
Shanmuga Priya's user avatar
-3 votes
1 answer
109 views

Decode yyyy-MM-dd date [closed]

I am trying to parse a "yyyy-MM-dd" date string but it always returns the date with hours. struct Foo: Decodable { let date: Date } let string = """ {"date&...
Eduardo Oliveros's user avatar
1 vote
1 answer
50 views

Decode byte string to Cyrillic in Python

I have a byte string like this, it should be Сравнение in Cyrillic characters: a = b'&#1057;&#1088;&#1072;&#1074;&#1085;&#1077;&#1085;&#1080;&#1077;' Decoding it ...
ans's user avatar
  • 390
0 votes
0 answers
55 views

How to decode .twb file

I am creating program in Python which is handling metadata from Tableau dashboards. Some of the dashboards have pictures, some of them not. The pictures can not be deleted from the dashboards itselves....
user21824979's user avatar
0 votes
0 answers
30 views

How to Decode Byte Array obtained From WebSocket Payload

I am trying to decode byte arrays obtained from a websocket using playwright (python). Here's a couple of example payloads: b'#\x19d\xf3\x15\xa8R\xf5)L\xeb\x00\x00\x007\x00\x03k\...
Mattlawd's user avatar
0 votes
0 answers
34 views

Can not decode gps receiver data

I try to get nmea data from bluetooth gps receiver. But can't decode received data. This is my code; import bluetooth # Set the MAC address of the Bluetooth device you want to connect to ...
burakpmk's user avatar
0 votes
1 answer
37 views

How convert struct to string (valid url format) and then parse the same struct again from it?

I want to convert my structs to the "string" so I can add them to the URL and reread them later from another URL. here is how I wanted to do it, but it's not working and I have no idea why. ...
Ahmadreza's user avatar
  • 7,042
0 votes
0 answers
40 views

Decode Base64 string to PDF File Django Python?

I have this problem, I have this string in base 64: eC1hbXotaWQtMjogRW1VZWtRZHhLTWViUWZQa0txT... My idea is to decode the string and download the file (pdf), but when I try to download the file I have ...
Tania Obando's user avatar
0 votes
1 answer
33 views

JSON data changing when decoded flutter [duplicate]

My app fetches data from TikTok through a API. The username and caption of some TikToks contains some special characters and fonts like: 𝒦ℋ𝒜ℒℰ𝒟 and some contains text in other languages. When I ...
Syed Irfan Hussaini's user avatar
0 votes
0 answers
74 views

Install yEnc - Python

I am trying to install yenc using pip in Linux pip install yenc However I received the error below Same with pip3 pip3 install yenc I tried multiple suggested online solutions but no luck (Shown ...
known user's user avatar
0 votes
0 answers
47 views

Android app unable to decode images for some users

I have an app that reads and enhances photos. Recently I (forced by Google) updated my app to use sdk 33. When I released it I began to get reports of errors. For these users it will not read any ...
Jon Harman's user avatar
-1 votes
1 answer
233 views

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xeb in position 0: invalid continuation byte

I'm trying to decode the following string in Python: ...
osama's user avatar
  • 1
0 votes
1 answer
116 views

CCSDS Encoding & Decoding

I'm working on a project where I need to encode and decode data frames with Reed Solomon and constitutional encoding as given by the CCSDS standard. I've tried to find some appropriate libraries, but ...
Chris's user avatar
  • 1
1 vote
0 answers
16 views

Encode the Id parameter only

i am trying to encode only Id parameter like this. but this isn't work for me. here is my code . i am using react. <Link to={`/savecoachingdetails?Id=${encodeURIComponent(item.id)}&edit=true`}&...
Talha Abbas's user avatar
0 votes
1 answer
26 views

Trouble reading json-like input with python library types

I have a some data read from a database (that I cannot change the structure of) where a single row might be something like '[{ "field1": "test", "numericfield2": ...
Robert Hickman's user avatar
1 vote
1 answer
246 views

The input is not a valid Base-64 string how to solve

I have the following code: var test = "eyJhbGciOiJSUzI1NiIsImtpZCI6IlRlc3RDZXJ0IiwidHlwIjoiYXQrand0In0"; var base64EncodedBytes = System.Convert.FromBase64String(test); var hidenString = ...
Iria's user avatar
  • 59
2 votes
1 answer
58 views

hoping to use the Reader interface in order to make my binary files import code cleaner

I am well aware that encoding/binary doesn't work with variadic types (like string). My problem is as follows: I have some old binary files produced with a program written in pascal language. I would ...
toudi's user avatar
  • 824
0 votes
1 answer
55 views

How to get data in hexadecimal format using Perl and the Google::ProtocolBuffers module

It is necessary to read data in hex format #!/usr/bin/perl -w use Google::ProtocolBuffers; use File::Slurp qw(read_file write_file); Google::ProtocolBuffers->parse(" message TestMessage {...
glen danzig's user avatar
0 votes
0 answers
73 views

Go json.NewDecoder vs. json.Unmarshal Memory

I'm currently learning Go and have built a small API in which I search for and summarize data from several other APIs. Now I noticed that if I use the following to access the data of multiple requests ...
yldshv's user avatar
  • 11
0 votes
2 answers
108 views

Out of string space when decoding base 64 to PDF in VBA

I'm getting the aforementioned run-time error 'Out of string space' when decoding a base 64 string into a PDF document. This obviously only happens when decoding larger documents (164 page PDF in this ...
Drawleeh's user avatar
  • 249
0 votes
0 answers
26 views

Decoding Help for Firestore Bytes

I have a weird compressed Bytes format returned as a String from a firestore database. I am trying to decode into a human-readable format. '\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\x03åVÛNÜ0\x10ý\x95UTõi+...
pb-0's user avatar
  • 1
0 votes
0 answers
53 views

The return result of the terminal command cannot be decoded normally

I wrote the following command to get the list of available WIFIs: result = subprocess.run("netsh wlan show network", shell=True, stdout=subprocess.PIPE, ...
idea steps's user avatar
1 vote
2 answers
93 views

batch script file - store the standard output of decode base64 utility to a variable

i am writing a batch script file (.bat) where i need to decode a base64 (Base64 utility for Windows) text and them encode to hex. I can do this. The problem is that i need to store the result in a ...
C. M.'s user avatar
  • 13
0 votes
0 answers
77 views

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 617: invalid start byte

File "d:\visual studio\python\sub.py", line 3, in <module> command_output = subprocess.run(["netsh", "wlan", "show", "profile"], ...
Yagnesh's user avatar
0 votes
0 answers
32 views

FormatException: Unexpected character (at character 1) - Flutter

My code produces a response like this (I use the OpenAI API): Tut mir leid, ein Fehler ist aufgetreten. Details: FormatException: Unexpected character (at character 1) Im Englischen stellt man sich ...
Gero Rößing's user avatar
2 votes
1 answer
84 views

Can the stream encoding change depending on the document version?

Hello StackOverflow community, I have a very interesting question about Streams in PDF files, I have 5 pdfs.. When I am decoding pdf page content stream , I split em by textBlocks, and then I wanna ...
user22321562's user avatar
2 votes
2 answers
119 views

Opening files (csv.gz) containing undefined characters and passing files into function

I have a function where the arguments passed are 5 filepaths. However, the first path is to a csv.gz where there seems to be an undefined character inside of the file. How can I work around this? I'm ...
JTA1618's user avatar
  • 79
0 votes
0 answers
84 views

How to shift IQ stream using numpy?

I have a python code that reads an IQ stream from a RTL-SDR dongle and process it to a ndarray, the IQ from the ndarray is then demodulated to extract an USB signal and written to a file, the code is ...
iu2frl's user avatar
  • 1
0 votes
1 answer
154 views

Trying to load csv file with Hebrew text but gets gibberish

I'm trying to load a csv file to my Jupiter Notebook, I managed to load the file but some columns of the data holds text in hebrew and it loads it as gibberish The code I used is the following: import ...
Liad Traube's user avatar
0 votes
0 answers
39 views

Decoding problems in polkadot-js after updating of substrate version

Recently I updated substrate version in our project from monthly-2022-09 to monthly-2022-12. After that in out webapp that uses polkadot-js/api I got a decoding error on attempt to query fee details ...
foo's user avatar
  • 1
0 votes
1 answer
99 views

WSO2 MI DECODE_MULTIPART_DATA isn't passed to endpont in blocking mode

I'am sending multipart/form-data message using sequence like below: <?xml version="1.0" encoding="UTF-8"?> <sequence xmlns="http://ws.apache.org/ns/synapse" name=...
Fiko's user avatar
  • 1
0 votes
0 answers
51 views

Encoding types and using encode() and decode() in python

So I created a little hobby project of a small service where I can email a server with a foreign language, and it will send me a reply of the translation. Long story short, emails/MIME want to be ...
BM100's user avatar
  • 3
-1 votes
1 answer
35 views

Decode json dart flutter

I need to decode the following JSON in Dart. When I perform the decoding, I encounter the following error. How can I resolve this? Error: type '(Map<dynamic, dynamic>) => RicettaNew' is not a ...
riki's user avatar
  • 1,522
0 votes
0 answers
24 views

Using MediaCodec, is it possible to QueueInputBuffer to enquee a buffer that contains more than one NALU?

I am decoding a live streaming of H264, it's working so far, but sometimes I got an accumulation of some H264 NAL units and I've seen that the input buffer I got from MediaCodec has enough room for ...
forlayo's user avatar
  • 1,518
0 votes
0 answers
69 views

FFMpeg multithreading while decoding udp stream

I have written a code using FFmpeg to decode an mpts UDP stream and display all programs within it simultaneously. In the first code snippet I shared below allows me to display up to 6 programs ...
doğan 's user avatar
  • 359
0 votes
1 answer
26 views

How can decode this json data that exported at Haumi API?

First, thanks to read this question. I am developing a website that show statistic chart on health data from wearable device; specially Miband 7 Yesterday, I found some API that bring health data from ...
BiteSnail's user avatar
0 votes
0 answers
25 views

Audio decode in Android Automotive

In Android Automotive OS, Question#1) where compressed audio (ex. mp3) get decoded in generally ? I think there is two ways. Decode in Android Framework layer in MediaCodec Decode in HW DSP (I mean, ...
Minohand's user avatar

1
2 3 4 5
88