Uploaded image for project: 'Directory Studio'
  1. Directory Studio
  2. DIRSTUDIO-1204

ImageDialog can't read binary data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-M15
    • None
    • None

    Description

      I can correctly set inetOrgPerson's jpegPhoto attribute with Directory Studio in OpenLDAP. When choosing the attached image pixel.jpg in the ImageDialog the correct value is saved to OpenLDAP (checked with ldapsearch):

      /9j/4AAQSkZJRgABAQEBLAEsAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wgARCAABAAEDAREAAhEBAxEB/8QAFAABAAAAAAAAAAAAAAAAAAAABP/EABQBAQAAAAAAAAAAAAAAAAAAAAf/2gAMAwEAAhADEAAAASooj//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQ/wD/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/EH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/EH//xAAUEAEAAAAAAAAAAAAAAAAAAAAA/9oACAEBAAE/EH//2Q==
      

      But in Directory Studio the method ImageDialog#getImageInfo returns "Invalid Image" because the byte[] it works on is based on a ldif record which contains different/corrupted data:

      77+977+977+977+9ABBKRklGAAEBAQEsASwAAO+/ve+/vQATQ3JlYXRlZCB3aXRoIEdJTVDvv73vv70AQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCAwKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUVFQwPFxgWFBgSFBUU77+977+9AEMBAwQEBQQFCQUFCRQNCw0UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFO+/ve+/vQARCAABAAEDAREAAhEBAxEB77+977+9ABQAAQAAAAAAAAAAAAAAAAAAAATvv73vv70AFAEBAAAAAAAAAAAAAAAAAAAAB++/ve+/vQAMAwEAAhADEAAAASoo77+977+977+9ABQQAQAAAAAAAAAAAAAAAAAAAADvv73vv70ACAEBAAEFAn/vv73vv70AFBEBAAAAAAAAAAAAAAAAAAAAAO+/ve+/vQAIAQMBAT8Bf++/ve+/vQAUEQEAAAAAAAAAAAAAAAAAAAAA77+977+9AAgBAgEBPwF/77+977+9ABQQAQAAAAAAAAAAAAAAAAAAAADvv73vv70ACAEBAAY/An/vv73vv70AFBABAAAAAAAAAAAAAAAAAAAAAO+/ve+/vQAIAQEAAT8hf++/ve+/vQAMAwEAAgADAAAAEO+/vQDvv73vv70AFBEBAAAAAAAAAAAAAAAAAAAAAO+/ve+/vQAIAQMBAT8Qf++/ve+/vQAUEQEAAAAAAAAAAAAAAAAAAAAA77+977+9AAgBAgEBPxB/77+977+9ABQQAQAAAAAAAAAAAAAAAAAAAADvv73vv70ACAEBAAE/EH/vv73vv70=
      

      Attachments

        1. pixel.jpg
          0.5 kB
          Bass Joe

        Issue Links

          Activity

            People

              seelmann Stefan Seelmann
              bassjoe Bass Joe
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: