Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Capture image data in a response and save it

Solved1.21K views23rd February 2023HTTP image data
3
Fenta Alemahu [SLC] [DevOps Enabler]1.10K 24th June 2021 0 Comments

Hi all,

A data source returns jpeg or png image data for an http request. The HTTP session is:

The response parameter is defined as:

I want to save this image to a folder. I used the following method.

But the image file is saved in a reduced size, meaning the parameter didn't capture all the bytes. It captures only few bytes (in one example 8 bytes) of the whole data. From wireshark, I can see that the image data bytes start like 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 ... The response content parameter captures bytes up to 0x00 (bytes 89 50 4e 47 0d 0a 1a 0a).

Data in StreamViewer:

How is it possible to capture the full image data? Did I miss something in the parameter or http session definition?

Fenta Alemahu [SLC] [DevOps Enabler] Selected answer as best 23rd February 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
João Severino [SLC] [DevOps Catalyst]13.02K Posted 25th June 2021 3 Comments

Hi Fenta,

In non-text-based files, 0x00 is common to occur but if you at any point in time try to handle that same data as a string it will cause you problems since 0x00 is the string terminator character (see Null-terminated string) and this leads me to think that at some point the data is being handled as a string and not as binary data.

Looking at your definition, I do not immediately see any error, but could you try the following:

  1. Check, in StreamViewer, if the same data is displayed as in Wireshark and you get 0x00 bytes
  2. Try to use QAction option binary in combination with QAction attribute inputParameters
Fenta Alemahu [SLC] [DevOps Enabler] Selected answer as best 23rd February 2023
Fenta Alemahu [SLC] [DevOps Enabler] commented 25th June 2021

Hi Joao,
The data displayed in StreamViewer is not the same as in Wireshark. In StreamViewer, it displays only those bytes before the 0x00. I updated the question with the data displayed in StreamViewer. The StreamViewer data is also this one:

HTTP/1.1 200 OK
-> 16:10:22 – Get for httpStatusCode () returned VT_BSTR : HTTP/1.1 200 OK
-> 16:10:22 – Get for imageContentLength () returned VT_BSTR : 1799435
-> 16:10:22 – Get for imageContentType () returned VT_BSTR : image/png
-> 16:10:22 – Get for getFrameBufferImageResponse () returned VT_BSTR : �PNG

Laurens Moutton [SLC] [DevOps Enabler] commented 28th June 2021

There was an issue in DataMiner 8.5 where a null character was not sent on http request data. See RN 8169.
That was fixed for sending commands, but probably not for receiving responses, which is what we’re seeing here. This will most likely be a software issue to be investigated.

Fenta Alemahu [SLC] [DevOps Enabler] commented 28th June 2021

Thank you Laurens. We will create a software issue task for further investigation.

You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin