Questions tagged [octetstring]
31 questions
1
vote
1 answer
Send http request using octet/stream via node.js
Currently my usecase is my node.js Server Server A needs to create a CSV file then send that CSV to another Server Server B which only accepts application/octet-stream.
Currently I'm manually CURLing the csv to upload it to Server B.
curl -H…

bumblebeen
- 642
- 8
- 21
1
vote
0 answers
How get base64 string from the application/octet-stream using .net or javascript?
I have to read file(pdf) from server and web service response i am getting of type application/octet-stream
I need to create file stream and create file(pdf).

Krutesh Amin
- 11
- 4
1
vote
1 answer
Converting datetime OctetString to human readable string in GoLang
How to convert Datetime Octetstring to ASCII. I read through one of the example in python netsnmp but still not able to solve it.
This is what I received from gosnmp as slice of []uint8
[7 224 1 28 20 5 42 0 43 0 0]
or Go-syntax representation of…

James Sapam
- 16,036
- 12
- 50
- 73
0
votes
1 answer
SNMP convert string representing datetime to dateandtime octetstr
I'm trying to emit a datetime in snmp,
for what I understand the DateAndTime string is a string of 11 bytes representind values in this format: ( 1 letter -> 1 Byte)
y -> year
m -> month
d -> day
h -> hour
M -> minute
s -> second
u -> 1/10th of…

DDS
- 2,340
- 16
- 34
0
votes
1 answer
How are binary octet string converted from binary to guid?
In Active Directory, I see that objectGUID are octet string binary 16 bytes fields. How is this conversion happening?
Is the binary converted to octetstring by splitting the fields in chunks? Like a Uint8Array?
How does it eventually become…

luisluix
- 547
- 5
- 17
0
votes
0 answers
Using Prometheus with SNMP Exporter and regex to format OctetStrings
We running Prometheus with SNMP Exporter to scrape SNMP targets. One target uses a large number of OctetStrings. What we'd like to achieve is overriding the OctetStrings to DisplayStrings and then using regex to retrieve the label as the metric.
The…

WernerNL
- 1
0
votes
0 answers
Accidentally make all files uploaded as 9B octet/stream in firebase, is there anything i can do to recover it?
I was using firebase storage to upload user pdf file, and tested that it successfully uploaded. But unfortunately, the files are saved as 9B octet stream not pdf. I found the solution to upload files as pdf, but haven't found any solution to recover…

Jay
- 21
- 2
0
votes
1 answer
Troubles with gzip API response (python)
I'm trying to read a file that comes from a response to Anaplan´s API. The problem is that I don´t know how to read the response because when I execute the code:
url =…

mxmlnlrcn
- 51
- 2
- 9
0
votes
0 answers
HERE TRAFFIC API TPEG, getmessage encryption
I am struggling for an entire week now, failing at meeting the encryption requirements of HERE traffic api, precisely TPEG API.
Steps to do:

Yesyoor
- 157
- 1
- 18
0
votes
0 answers
Parse Octet Stream / SNMP using C#
I am making a simple TCP Receiver to handle data send by some device. The code is pretty straight forward and i am able to receive the data as well. Following is my code
TcpListener server = null;
try
{
// Set the TcpListener on port.
Int32…

RABI
- 692
- 2
- 15
0
votes
0 answers
How to specify octet string in SET command?
I am working with MIB browser professional snmpv2c. one of the column parameters of mine in the table is octet string. I want to set octet string in SNMP table. I set OID and when I want to set value I take an error: wrong type.
my octet string is…

Elnaz
- 3
- 3
0
votes
1 answer
Java - SNMP - Converting OctetString to Float
currently I am playing around with SNMP (snmp4j and SimpleSnmpClient) to get some information from a network device.
This works as long as the result is a "normal" value like an integer.
If the value is an OctetString…

Nisbo
- 61
- 1
- 10
-1
votes
1 answer
How does one convert a binary IPv4 address to 4 octets using the Python3 ipaddress library?
I want to use the Python3 library ipaddress to convert a binary IPv4 network address into 4 octets; how would I do that?
Example:
1100 0000 - 1010 1000 - 0000 0000 - 0000 0000
to
192.168.0.0

leeand00
- 25,510
- 39
- 140
- 297
-1
votes
1 answer
How to convert an octet string to a number?
I am trying to convert an octet string into an Integer in Ruby.
For now I have this solution:
def octet_string_to_i(str)
str.bytes.map { |v| format('%08b', v) }.join.to_i(2)
end
It feels like total overkill. I found other questions about…

Kyll
- 7,036
- 7
- 41
- 64
-2
votes
1 answer
How to display base64 pdf in angular template file
I have a base 64 encoded string, I want to display it on my angular template file.

vijesh
- 1,115
- 1
- 11
- 27