Android Question [Solved] Image as data help required

Unobtainius

Active Member
Licensed User
Longtime User
Hi guys
I am receiving the following type of data from a web site to represent and image as one of the fields in an XML file
/9j/4QIARXhpZgAASUkqAAgAAAAJAAABAwABAAAAoAUAAAEBAwABAAAAWAQAAA8BAgAQAAAAegAAABABAgAQAAAAigAAADEBAgAQAAAAmgAAADIBAgAUAAAAqgAAAJqCBQABAAAAvgAAAAukBwAQAQAAxgAAACCkAgAhAAAA1gEAAAAAAABBUkggSW5jLgB6VZMHQhznRnJlZXdheTMKAAAAAAAAAFYzLjZyMS4zODYxAAAAAAAyMDIxOjA1OjExIDA4OjEwOjE4AAA1DAAAypo7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAe0DALgLADUMAGwH3AUAAOgDAAAAAAAAHQAQAP////8BAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyNTY1NTItNGRlYjdiMC0xNzk1N2U2ZGRkNQAAAAAAAAAA/9sAhAAIBgYHBgUIBwcHCQkICgwUDQwLCwwZEhMPFB0aHx4dGhwcICQuJyAiLCMcHCg3KSwwMTQ0NB8nOT04MjwuMzQyAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsBAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKCxAAAgEDAwIEAwUFBAQAAAF9AQIDA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UbOM++aaPmUc03B3EGmrIGTNKCNwIOKaTmVWJJ70wY2EY5HWnKA544OKa0EPaQ9Aepp+75R6ntmoSw5Bpu/L5J49KLdgLGSCCTn1qQkMmWqpJKwUY7nvSCY5UNjNTa40y0c5yGwtQ4+bHf1qMs4PH50skhVgo69yKLPZCdicANJuz26U3f8+SBUaP1Yk1Hv69xTW4y35gK+1N85ehNQsSEHOKQDf8AX+dLQbHsxBCgnjmnsf3Z9e9QknDc9ODUYcy/KOPena5JNGcHdnipt4JG3oarAYyByQOlJuJXBIB9BTsFy5KwEQwcnv7VA8ny7geQKYodmA6gimspAOSPTrS0C5Kk25eOPc0pdVPXk9TVYMdvy9OgpQp3g5Jp2BlyAxgMxb86NwJ46VUQFWJYj2qTDD1z1+lEgRZVyV68VG1xtOMdDTIZAqM57HvRKnmAsMDvU6XsVsiQEO248gGnEqp7VBARzuI45qKVyzE54Pane7sK3cuZTGePxpFcNknGAarrIobDD5MfjmmF9g2joelFgLAlBYgA4HQ003REgA5HvVaPeWO39afs3kgZBFPRbgWPtJbHy85qTzSI2zye1Uwu0DnJqRWIGXPBqdLaFdR5fcOPTJzSFiJPlz7imkDoDkk1Gp3NuJ+UdadyVoPZ2zgtgU6OTHfJI4qvJt7ZOT2p4j5HbHWnpbUaTHyyNwozk0skm1emD2JppYmTceMVDMp3BsE9zTSuyWDNhvmJ45+tSRAMQelNCmRw+Dx607yj5Y/vZpPVWY/MdJJtTHFNUqzgZ60xo3fC8

This is just a subsection of it, its returned by an LPR camera
What is it?
I am wondering what sort of conversion I need to run?
Is it base64 I need to convert into a byte array or what?
Yes, I am completely lost so was hoping one of you people could lead me in the right direction
 

Peter Simpson

Expert
Licensed User
Longtime User
It's just a black line, and there I was hoping for something exciting lol ?
1620681531167.png
 
Upvote 0

Unobtainius

Active Member
Licensed User
Longtime User
If anyone is interested here's the XML file
LPR License Plate Recognition Camera??
Yes the camera has a License plate recognition engine in it

The camera is inside the owners office looking out a tinted window at traffic about 50m away, plus it a crap day, raining, and early in the morning.
That's why the image is so dark, but as you can see it still captured the number plate
I have to admit the app I was struggling with was in vb.net but I'd never seen data like the base64 before so thought I would ask the big brains here.
 

Attachments

  • regodata.xml
    133.1 KB · Views: 243
Upvote 0
Top