question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

image.value is empty byte string

See original GitHub issue

I’m having a strange issue. When I capture an image from the image recorder, it’s value ends up being the empty byte string. If I then ask for the value in the subsequent cell, I get the bytes. What’s causing this asynchrony? I tried to “fix” it by adding a delay between defining image and asking for its value, but that didn’t work. What’s the “correct” way of reliably grabbing the current camera frame’s value?

Screen Shot 2019-09-17 at 12 25 32 PM

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

1reaction
pmeiercommented, Jul 6, 2021

I found if you display the recorder and hit the camera icon, this actually triggers an infinite loop. Looking at the code, I have no idea what is executed by pressing the camera icon. Does someone have some pointers for me to check what is happening besides setting recorder.recording = True?

0reactions
jiapei100commented, Sep 14, 2022

Same here… Still buggy… Magic webrtc … I can display live camera, but if I do any process, the resultant image won’t be able to show live in another window. How?? I mean:

  • The FIRST window shows original images captured from camera
  • The SECOND window shows the filtered captured images in live
Read more comments on GitHub >

github_iconTop Results From Across the Web

Java: image <-> bytes conversion return null - Stack Overflow
In the bean User there is a getter/setter for the picture and when I sout it, it looks fine: System.out.println(Arrays.toString(userReturn.
Read more >
Output Empty byte[] - MSDN - Microsoft
A one byte 'byte array' still is an invalid image and so will fail. What you see as the URL most likely is...
Read more >
Byte[] convertimagetobinary(image img) if image is null
The simplest solution is to use a "neutral" default image and set your PictureBox to that: A blank "head" much like the standard...
Read more >
Convert String to Byte Array and Reverse in Java - Baeldung
To convert it to a byte array, we translate the sequence of characters into a sequence of bytes. For this translation, we use...
Read more >
Class ByteString (3.15.8) | .NET client library - Google Cloud
Returns true if this byte string is empty, false otherwise. Property Value. Type, Description. Boolean. Item[Int32].
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found