Questions tagged [octetstring]

31 questions
7
votes
2 answers

UnsupportedMediaTypeException: Content type 'application/octet-stream' not supported for bodyType=java.util.Map))

I am facing below error while running junit for controller. I have already set content-type as Json, still error is same. Any suggestion what could be the issue ? Error is java.lang.AssertionError: expectation "expectNext({response=employee saved…
user2800089
  • 2,015
  • 6
  • 26
  • 47
4
votes
2 answers

Spring API request giving "Content type 'application/octet-stream' not supported" error, however request is successful when using Postman

I am trying to send an API request through my React frontend to Spring backend. When I send the request I get this error: Could not resolve parameter [0] in private org.springframework.http.ResponseEntity…
mtibo
  • 61
  • 1
  • 2
  • 7
4
votes
1 answer

Unpacking OctetString data into a variable for further processing

All - I am working with python and pysnmp to collect Cisco Discovery Protocol data via snmp. Since I am working with CDP, I am using the CISCO-CDP-MIB.my and the issues that I am facing are with unpacking the contents of cdpCacheCapabilities and…
adamz88
  • 319
  • 3
  • 12
3
votes
1 answer

How to send application/octet-stream data in a multipart/form-data content type using multer without filename parameter?

I have a multipart/form-data content type which I have to send over a POST request. multipart data contains application/octet-stream, i.e array of bytes. I am using multer node module at the server side to process the incoming multipart data. I am…
Shaik Syed Ali
  • 3,359
  • 3
  • 17
  • 22
3
votes
1 answer

How to save octet stream received as REST response to the file system?

While trying to save octet stream JSON format response (containing data of file in a properietary format) received using Unirest client the format gets corrupted and the (properietary) software used to open that format is unable to open this saved…
Ulysses
  • 5,616
  • 7
  • 48
  • 84
2
votes
0 answers

How do you update a thumbnailPhoto in Active Directory using NodeJS and ldapjs?

I'm new to working with Active Directory in general. I'm trying to update the thumbnailPhoto attribute using ldapjs npm package I have my code setup to be able to update attributes in general and it works well. I get my user like so: const…
rcpilotp51
  • 524
  • 1
  • 3
  • 22
2
votes
1 answer

AWS S3 - Fetch PDF as octet-stream and upload to S3 bucket

I'm fetching a PDF from a 3rd-party API. The response content-type is application/octet-stream. Thereafter, I upload it to S3 but if I go to S3 and download the newly written file, the content is not visible, the pages are blank, viewed in Chromium…
ethane
  • 2,329
  • 3
  • 22
  • 33
2
votes
3 answers

React-Native, Google Photos API Image Upload

react-native + expo TL;DR: Does anyone have a working example of react-native/expo working with an in app camera and uploading an image to the 'new' google api? Authenticate user (working) Make Album (working) Make Album Shareable (working) Take…
mbunch
  • 560
  • 7
  • 21
1
vote
1 answer

Python Decode OctetString 7-bit Characters

I'm currently playing around with decoded asn1 data and can't wrap my head around correctly decoding the data into strings (if the data is numerical it's working absolutely fine) Example: Hex String -> 0ddc2f93c6c7bb10 Expected Result ->…
zeitghaist
  • 89
  • 9
1
vote
0 answers

MessageConverter issue while using RestTemplate with StreamingResponseBody

We have a REST API (server side) implemented using Spring Boot. This API is streaming a PDF file as StreamingResponseBody wrapped in ResponseEntity where content-type is given as MediaType.APPLICATION_OCTET_STREAM. I am trying to access this API…
1
vote
1 answer

How shall I convert application/octet-stream into image to be displayed in base64 or any jpeg format?

I am trying to send a image from social media to trigger to web hook and thus to receive in my application. But here web hook is responding in a application/octet stream. But in order to display / read the image, I need it to be in base64 or any…
V K
  • 87
  • 4
  • 13
1
vote
0 answers

Could not find writer for content-type application/octet-stream type:

I'm trying to turn an old project into a gradle, but i get the error above. if (asynchronous) { ClientResponse resp = request.post(); System.out.println("status: " + resp.getStatus()); …
1
vote
3 answers

EasySNMP: Different output converting OCTETSTR to Hex

When I use the function encode to convert OCTET to Hex, some characters are add when it shouldn't. Example: Linux: snmpwalk -t 5 -v2c -c public 192.168.10.150 iso.3.6.1.4.1.25355.3.2.6.4.2.5.1.7.1.1.1 SNMPWALK output:…
Shinomoto Asakura
  • 1,473
  • 7
  • 25
  • 45
1
vote
2 answers

Powershell: Translate Octet String (SNMP) Output to Hex (Mac address)

So i will shortly explain the env: Need to work on a Win2k8 Server with Powershell 4.0 I want to get some information with using SNMP (so printer type and printer MAC address): $SNMP = new-object -ComObject…
Mika
  • 11
  • 1
  • 2
1
vote
1 answer

[Java][RestAssured] How to save application/octet-stream response as jpg image?

I want to download images from website using RestAssured. My code: Response response = given() .log().all() .cookie(cookie) .get(format(image_endpoint, "46581657")); Endpoint returns status code 200 and image in…
Paweł Adamus
  • 11
  • 1
  • 2
1
2 3